PyAV-Org / PyAV

Pythonic bindings for FFmpeg's libraries.
https://pyav.basswood-io.com/
BSD 3-Clause "New" or "Revised" License
2.47k stars 360 forks source link

fix: use `av_guess_sample_aspect_ratio` when reporting stream SAR #1425

Closed moonsikpark closed 3 months ago

moonsikpark commented 3 months ago

When user requests stream's SAR, use the upstream's heuristic function (av_guess_sample_aspect_ratio()) to report it.

Resolves: https://github.com/PyAV-Org/PyAV/issues/1267

jlaine commented 3 months ago

I'd really prefer we don't merge any new code without the corresponding tests.