From 1356ff84b3833ce3526758c4c8fe546c303c9cda Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 9 Oct 2015 21:22:12 -0300 Subject: [PATCH] avcodecmap: add jpeg2000 decoder mapping Map the 3 possible jpeg2000 caps to JPEG2000 codec id --- ext/libav/gstavcodecmap.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c index 126919e8ae..14686dd58c 100644 --- a/ext/libav/gstavcodecmap.c +++ b/ext/libav/gstavcodecmap.c @@ -954,6 +954,18 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id, "parsed", G_TYPE_BOOLEAN, TRUE, NULL); break; + case AV_CODEC_ID_JPEG2000: + caps = + gst_ff_vid_caps_new (context, NULL, codec_id, encode, "image/x-j2c", + NULL); + if (!encode) { + gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id, + encode, "image/x-jpc", NULL)); + gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id, + encode, "image/jp2", NULL)); + } + break; + case AV_CODEC_ID_SP5X: caps = gst_ff_vid_caps_new (context, NULL, codec_id, encode, "video/sp5x",