March 23, 2026
1:27 p.m.
This looks like something that should be fixed in FFMpeg? We use stream->sample_aspect_ratio to get SAR info, I would assume that it would be parsed from the codec data and I'm quite surprised that it's not already. We might be misusing the FFMpeg API instead, and maybe the information is available elsewhere. It's also possible that it needs `avformat_find_stream_info` to be called before it is filled. We don't always call it because it can be costly, and demuxer initialization needed to be as quick as possible, but maybe we can check if SAR info is missing and decide to call it in that case (or somehow delay until we *need* SAR info). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10321#note_133369