avcodecmap: Add mapping for CineForm HD / CFHD codec
authorSebastian Dröge <sebastian@centricular.com>
Tue, 14 Mar 2017 13:01:41 +0000 (15:01 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 14 Mar 2017 16:02:23 +0000 (18:02 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=780024

ext/libav/gstavcodecmap.c

index 25c21d1..e9a7d4f 100644 (file)
@@ -1331,6 +1331,12 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
           "video/x-theora", NULL);
       break;
 
+    case AV_CODEC_ID_CFHD:
+      caps =
+          gst_ff_vid_caps_new (context, NULL, codec_id, encode,
+          "video/x-cineform", NULL);
+      break;
+
     case AV_CODEC_ID_AAC:
     {
       caps =
@@ -3948,6 +3954,9 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
   } else if (!strcmp (mimetype, "video/x-flash-screen2")) {
     id = AV_CODEC_ID_FLASHSV2;
     video = TRUE;
+  } else if (!strcmp (mimetype, "video/x-cineform")) {
+    id = AV_CODEC_ID_CFHD;
+    video = TRUE;
   } else if (!strcmp (mimetype, "video/x-indeo")) {
     gint indeoversion = 0;