codecmap: add vp9 mapping

This commit is contained in:
Wim Taymans 2015-06-26 17:30:25 +02:00
parent 8cb8461f7e
commit 8da0a61dc0

View file

@ -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;