diff options
author | wm4 <wm4@nowhere> | 2015-06-21 18:06:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-21 18:06:14 +0200 |
commit | be882175d85d8b1ea253dce11494a53264d04148 (patch) | |
tree | 9503dcaf5a1f0f858cdaca94f754b0908cba5a33 /video/decode/vd_lavc.c | |
parent | c66be698cd8136933b80c4e0ef1698158c10316c (diff) | |
download | mpv-be882175d85d8b1ea253dce11494a53264d04148.tar.bz2 mpv-be882175d85d8b1ea253dce11494a53264d04148.tar.xz |
demux: merge extradata fields
MPlayer traditionally had completely separate sh_ structs for
audio/video/subs, without a good way to share fields. This meant that
fields shared across all these headers had to be duplicated. This commit
deduplicates essentially the last remaining duplicated fields.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 5a106acebc..61bd7bc798 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -404,7 +404,7 @@ static void init_avctx(struct dec_video *vd, const char *decoder, avctx->coded_height = sh->video->disp_h; avctx->bits_per_coded_sample = sh->video->bits_per_coded_sample; - mp_lavc_set_extradata(avctx, sh->video->extradata, sh->video->extradata_len); + mp_lavc_set_extradata(avctx, sh->extradata, sh->extradata_size); if (mp_rawvideo) { avctx->pix_fmt = imgfmt2pixfmt(sh->codec_tag); |