diff options
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 3 |
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) |