summaryrefslogtreecommitdiff
path: root/ext/libav/gstavcodecmap.c
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2015-06-26 17:30:25 +0200
committerWim Taymans <wtaymans@redhat.com>2015-06-26 17:30:25 +0200
commit8da0a61dc012f2166855b06d7ed423ec388dd895 (patch)
treea0a3bb2b715ec24e90e1a1fe308246ed3fe743f4 /ext/libav/gstavcodecmap.c
parent8cb8461f7e3c5ad0162e7caaca120f6b6577489a (diff)
downloadgst-libav-8da0a61dc012f2166855b06d7ed423ec388dd895.tar.gz
codecmap: add vp9 mapping
Diffstat (limited to 'ext/libav/gstavcodecmap.c')
-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 81f36fd..5895587 100644
--- a/ext/libav/gstavcodecmap.c
+++ b/ext/libav/gstavcodecmap.c
@@ -1293,6 +1293,12 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
NULL);
break;
+ case AV_CODEC_ID_VP9:
+ caps =
+ gst_ff_vid_caps_new (context, NULL, codec_id, encode, "video/x-vp9",
+ NULL);
+ break;
+
case AV_CODEC_ID_THEORA:
caps =
gst_ff_vid_caps_new (context, NULL, codec_id, encode,
@@ -3743,6 +3749,9 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
} else if (!strcmp (mimetype, "video/x-vp8")) {
id = AV_CODEC_ID_VP8;
video = TRUE;
+ } else if (!strcmp (mimetype, "video/x-vp9")) {
+ id = AV_CODEC_ID_VP9;
+ video = TRUE;
} else if (!strcmp (mimetype, "video/x-flash-screen")) {
id = AV_CODEC_ID_FLASHSV;
video = TRUE;