summaryrefslogtreecommitdiff
path: root/libavformat/img2.c
diff options
context:
space:
mode:
authorJean First <jeanfirst@gmail.com>2012-01-22 00:11:42 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-22 00:46:19 +0100
commite8df18270a50fd57eab06f1718ad9d075b200d98 (patch)
tree883c909c19f7c8c724a78151e409f5fcf0282e30 /libavformat/img2.c
parent39bf7ffeb5f3d886c9f5833107b557b43d2ce24d (diff)
img2: add j2c file extension
Some applications use the j2c extension for jpeg2000 codestream files. Signed-off-by: Jean First <jeanfirst@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/img2.c')
-rw-r--r--libavformat/img2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c
index bc35591a0b..775f5e7a05 100644
--- a/libavformat/img2.c
+++ b/libavformat/img2.c
@@ -85,6 +85,7 @@ static const IdStrMap img_tags[] = {
{ CODEC_ID_SUNRAST , "im8"},
{ CODEC_ID_SUNRAST , "im24"},
{ CODEC_ID_SUNRAST , "sunras"},
+ { CODEC_ID_JPEG2000 , "j2c"},
{ CODEC_ID_JPEG2000 , "j2k"},
{ CODEC_ID_JPEG2000 , "jp2"},
{ CODEC_ID_JPEG2000 , "jpc"},
@@ -527,7 +528,7 @@ AVOutputFormat ff_image2_muxer = {
.name = "image2",
.long_name = NULL_IF_CONFIG_SMALL("image2 sequence"),
.extensions = "bmp,dpx,jls,jpeg,jpg,ljpg,pam,pbm,pcx,pgm,pgmyuv,png,"
- "ppm,sgi,tga,tif,tiff,jp2",
+ "ppm,sgi,tga,tif,tiff,jp2,j2c",
.priv_data_size = sizeof(VideoData),
.video_codec = CODEC_ID_MJPEG,
.write_header = write_header,