diff options
author | Wim Taymans <wtaymans@redhat.com> | 2015-06-26 17:30:25 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2015-06-26 17:30:25 +0200 |
commit | 8da0a61dc012f2166855b06d7ed423ec388dd895 (patch) | |
tree | a0a3bb2b715ec24e90e1a1fe308246ed3fe743f4 /ext/libav/gstavcodecmap.c | |
parent | 8cb8461f7e3c5ad0162e7caaca120f6b6577489a (diff) | |
download | gst-libav-8da0a61dc012f2166855b06d7ed423ec388dd895.tar.gz |
codecmap: add vp9 mapping
Diffstat (limited to 'ext/libav/gstavcodecmap.c')
-rw-r--r-- | ext/libav/gstavcodecmap.c | 9 |
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; |