diff options
author | wm4 <wm4@nowhere> | 2014-01-11 01:43:40 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-11 01:47:14 +0100 |
commit | 589f4871ea0ef4e95065906192f7329096e33ab0 (patch) | |
tree | a827b03b89da70e3c353a28e70822217ca203b7f /video/decode | |
parent | 85e90668ae10fb025d7c450eb7eb37b48c9eded1 (diff) | |
download | mpv-589f4871ea0ef4e95065906192f7329096e33ab0.tar.bz2 mpv-589f4871ea0ef4e95065906192f7329096e33ab0.tar.xz |
vd_lavc: matroska: remove weird realvideo special handling
This case can't happen with the normal realvideo codepath in
demux_mkv.c, because the code would errors out if the extradata is too
small, and everything would be broken anyway in the case the vd_lavc.c
condition is actually triggered.
It still might happen with VfW-muxed realvideo in Matroska, though.
Basically, I'm hoping this doesn't matter anyway, and that the vd_lavc.c
code was for other old demuxers, like demux_avi or demux_rm. Following
the commit history, it's not really clear for what demuxer this code
was added.
Diffstat (limited to 'video/decode')
-rw-r--r-- | video/decode/vd_lavc.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index bc3f06362e..74bffb23b7 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -317,24 +317,9 @@ static void set_from_bih(AVCodecContext *avctx, uint32_t format, * MJPG fourcc :( */ av_opt_set_int(avctx, "extern_huff", 1, AV_OPT_SEARCH_CHILDREN); break; - - case MP_FOURCC('R','V','1','0'): - case MP_FOURCC('R','V','1','3'): - case MP_FOURCC('R','V','2','0'): - case MP_FOURCC('R','V','3','0'): - case MP_FOURCC('R','V','4','0'): - if (bih->biSize < sizeof(*bih) + 8) { - // only 1 packet per frame & sub_id from fourcc - uint32_t extradata[2] = { - 0, - format == MP_FOURCC('R','V','1','3') ? 0x10003001 : 0x10000000, - }; - mp_lavc_set_extradata(avctx, &extradata, 8); - } - break; } - if (bih->biSize > sizeof(*bih) && avctx->extradata_size == 0) + if (bih->biSize > sizeof(*bih)) mp_lavc_set_extradata(avctx, bih + 1, bih->biSize - sizeof(*bih)); avctx->bits_per_coded_sample = bih->biBitCount; |