mirror of
https://github.com/mpv-player/mpv
synced 2025-01-10 17:09:45 +00:00
av_common: remove deprecated API usage
As the removed comment says, not copying this field may cause problems
on older libav* releases. See also commit 5f7de399
.
Remove this, as newer FFmpeg releases are available. As of this commit,
use of mpv with FFmpeg 2.5.x and below, or Libav 11 and below is not
recommended, and may lead to random video decoding issues. (Although the
failure cases are apparently somewhat obscure.)
This commit is contained in:
parent
dd5c87e1d7
commit
62aba69e15
@ -66,8 +66,6 @@ void mp_copy_lav_codec_headers(AVCodecContext *avctx, AVCodecContext *st)
|
|||||||
avctx->block_align = st->block_align;
|
avctx->block_align = st->block_align;
|
||||||
avctx->channel_layout = st->channel_layout;
|
avctx->channel_layout = st->channel_layout;
|
||||||
avctx->bits_per_coded_sample = st->bits_per_coded_sample;
|
avctx->bits_per_coded_sample = st->bits_per_coded_sample;
|
||||||
// Required in FFmpeg 2.5.x / Libav 11, deprecated afterwards.
|
|
||||||
avctx->stream_codec_tag = st->stream_codec_tag;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// We merely pass-through our PTS/DTS as an int64_t; libavcodec won't use it.
|
// We merely pass-through our PTS/DTS as an int64_t; libavcodec won't use it.
|
||||||
|
Loading…
Reference in New Issue
Block a user