summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c17
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;