avcodecmap: Add mapping for Flash Screen2 codec

This commit is contained in:
Sebastian Dröge 2016-12-04 23:39:00 +02:00
parent bedc1d982d
commit cfd7503959

View file

@ -1277,6 +1277,12 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
"video/x-flash-screen", NULL); "video/x-flash-screen", NULL);
break; break;
case AV_CODEC_ID_FLASHSV2:
caps =
gst_ff_vid_caps_new (context, NULL, codec_id, encode,
"video/x-flash-screen2", NULL);
break;
case AV_CODEC_ID_VP3: case AV_CODEC_ID_VP3:
caps = caps =
gst_ff_vid_caps_new (context, NULL, codec_id, encode, "video/x-vp3", gst_ff_vid_caps_new (context, NULL, codec_id, encode, "video/x-vp3",
@ -3939,6 +3945,9 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
} else if (!strcmp (mimetype, "video/x-flash-screen")) { } else if (!strcmp (mimetype, "video/x-flash-screen")) {
id = AV_CODEC_ID_FLASHSV; id = AV_CODEC_ID_FLASHSV;
video = TRUE; video = TRUE;
} else if (!strcmp (mimetype, "video/x-flash-screen2")) {
id = AV_CODEC_ID_FLASHSV2;
video = TRUE;
} else if (!strcmp (mimetype, "video/x-indeo")) { } else if (!strcmp (mimetype, "video/x-indeo")) {
gint indeoversion = 0; gint indeoversion = 0;