summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-03-14 15:01:41 +0200
committerSebastian Dröge <sebastian@centricular.com>2017-03-14 18:02:23 +0200
commit887e45e6cc2546316f21b877a5adc5b1748101fa (patch)
tree0a03bfedc7d36f8efe2cf01d15fce687428bbfa7
parent2e79bd3d4090ac1be0e858305dfa861d43e70f2f (diff)
downloadgst-libav-887e45e6cc2546316f21b877a5adc5b1748101fa.tar.gz
avcodecmap: Add mapping for CineForm HD / CFHD codec
https://bugzilla.gnome.org/show_bug.cgi?id=780024
-rw-r--r--ext/libav/gstavcodecmap.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c
index 25c21d1..e9a7d4f 100644
--- a/ext/libav/gstavcodecmap.c
+++ b/ext/libav/gstavcodecmap.c
@@ -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;