March 26, 2026
1:05 p.m.
On Wed Mar 25 13:45:05 2026 +0000, Yuxuan Shui wrote:
right. `avformat_find_stream_info` doesn't get the sar until it gets to `try_decode_frame`. but actually, SAR is available way earlier, there is just no API for getting it. `ff_h264_decode_extradata` is where the SPS gets parsed, which is called by, for example, `h264_decode_init`, `h264_parse`, etc. One option is we just call `ff_h264_decode_extradata` ourselves. We can drop my SPS parser implementation if we do that. How does that sound? oh no `ff_h264_decode_extradata` isn't public API either.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10321#note_133906