mirror of
https://github.com/mpv-player/mpv
synced 2024-12-14 02:45:43 +00:00
139f6b5de7
Both AVFrame.pts and AVFrame.pkt_pts have existed for a long time. Until now, decoders always returned the pts via the pkt_pts field, while the pts field was used for encoding and libavfilter only. Recently, pkt_pts was deprecated, and pts was switched to always carry the pts. This means we have to be careful not to accidentally use the wrong field, depending on the libavcodec version. We have to explicitly check the version numbers. Of course the version numbers are completely idiotic, because idiotically the pkg-config and library names are the same for FFmpeg and Libav, so we have to deal with this explicitly as well. |
||
---|---|---|
.. | ||
ad_lavc.c | ||
ad_spdif.c | ||
ad.h | ||
dec_audio.c | ||
dec_audio.h |