March 25, 2026
1:45 p.m.
On Wed Mar 25 13:08:44 2026 +0000, Yuxuan Shui wrote:
ok, yes. this info is available in `codecpar` after `avformat_find_stream_info`. 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? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10321#note_133714