avcodecmap: do more reverse mapping of MPEG4
authorWim Taymans <wtaymans@redhat.com>
Thu, 29 May 2014 15:00:23 +0000 (17:00 +0200)
committerWim Taymans <wtaymans@redhat.com>
Thu, 29 May 2014 15:00:23 +0000 (17:00 +0200)
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

index 11fb40a..d8c42f2 100644 (file)
@@ -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 */