aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2016-03-31 22:00:45 +0200
committerGravatar wm4 <wm4@nowhere>2016-03-31 22:00:45 +0200
commitc971220cdd360b56efc0e67536bdf19501477aa4 (patch)
tree74ffd570b80306725898d81e705e09b3a4dfdb8d /video/decode/vd_lavc.c
parent38c813c919a2c7d59d6113f16252aa3be96f3fca (diff)
demux_lavf, ad_lavc, ad_spdif, vd_lavc: handle FFmpeg codecpar API change
AVFormatContext.codec is deprecated now, and you're supposed to use AVFormatContext.codecpar instead. Handle this for all of the normal playback code. Encoding mode isn't touched.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 478c6d56da..677d406989 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -444,8 +444,7 @@ static void init_avctx(struct dec_video *vd, const char *decoder,
mp_imgfmt_to_name(c->codec_tag));
}
- if (c->lav_headers)
- mp_copy_lav_codec_headers(avctx, c->lav_headers);
+ mp_set_lav_codec_headers(avctx, c);
/* open it */
if (avcodec_open2(avctx, lavc_codec, NULL) < 0)