From e066785ad05f9119e3c1eded46260bcabd556b4d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 29 May 2014 17:00:23 +0200 Subject: [PATCH] avcodecmap: do more reverse mapping of MPEG4 We previously mapped some caps to MPEG4 and codec_tag so we can use the codec_tag again to map to the original caps. --- ext/libav/gstavcodecmap.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c index 11fb40a113..d8c42f2546 100644 --- a/ext/libav/gstavcodecmap.c +++ b/ext/libav/gstavcodecmap.c @@ -976,6 +976,16 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id, gst_ff_vid_caps_new (context, NULL, codec_id, encode, "video/x-divx", "divxversion", G_TYPE_INT, 5, NULL); break; + case GST_MAKE_FOURCC ('X', 'V', 'I', 'D'): + caps = + gst_ff_vid_caps_new (context, NULL, codec_id, encode, + "video/x-xvid", NULL); + break; + case GST_MAKE_FOURCC ('3', 'I', 'V', '1'): + caps = + gst_ff_vid_caps_new (context, NULL, codec_id, encode, + "video/x-3ivx", NULL); + break; case GST_MAKE_FOURCC ('m', 'p', '4', 'v'): default: /* FIXME: bitrate */