avcodecmap: Add mapping for Apple Intermediate Codec
authorSebastian Dröge <sebastian@centricular.com>
Sun, 6 Apr 2014 07:02:46 +0000 (09:02 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 6 Apr 2014 07:05:43 +0000 (09:05 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=727673

ext/libav/gstavcodecmap.c

index 1f2a92e..49257a3 100644 (file)
@@ -1695,6 +1695,12 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
       }
       break;
 
+    case AV_CODEC_ID_AIC:
+      caps =
+          gst_ff_vid_caps_new (context, NULL, codec_id, encode,
+          "video/x-apple-intermediate-codec", NULL);
+      break;
+
     case AV_CODEC_ID_WS_VQA:
     case AV_CODEC_ID_IDCIN:
     case AV_CODEC_ID_8BPS:
@@ -3724,6 +3730,9 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
       id = AV_CODEC_ID_FFV1;
       video = TRUE;
     }
+  } else if (!strcmp (mimetype, "video/x-apple-intermediate-codec")) {
+    id = AV_CODEC_ID_AIC;
+    video = TRUE;
   } else if (!strcmp (mimetype, "audio/x-adpcm")) {
     const gchar *layout;