img2: add j2c file extension
authorJean First <jeanfirst@gmail.com>
Sun, 22 Jan 2012 00:11:42 +0000 (00:11 +0000)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 16 Mar 2014 22:31:29 +0000 (23:31 +0100)
Some applications use the j2c extension for jpeg2000 codestream files.

libavformat/img2.c
libavformat/img2enc.c

index 493df6d..ed59281 100644 (file)
@@ -63,6 +63,7 @@ static const IdStrMap img_tags[] = {
     { AV_CODEC_ID_SUNRAST,    "im8"      },
     { AV_CODEC_ID_SUNRAST,    "im24"     },
     { AV_CODEC_ID_SUNRAST,    "sunras"   },
+    { AV_CODEC_ID_JPEG2000,   "j2c"      },
     { AV_CODEC_ID_JPEG2000,   "jp2"      },
     { AV_CODEC_ID_JPEG2000,   "jpc"      },
     { AV_CODEC_ID_JPEG2000,   "j2k"      },
index 4cc5c3f..f4a80aa 100644 (file)
@@ -148,7 +148,7 @@ AVOutputFormat ff_image2_muxer = {
     .long_name      = NULL_IF_CONFIG_SMALL("image2 sequence"),
     .extensions     = "bmp,dpx,jpeg,jpg,ljpg,pam,pbm,pcx,pgm,pgmyuv,png,"
                       "ppm,sgi,tga,tif,tiff,jp2,xwd,sun,ras,rs,im1,im8,im24,"
-                      "sunras,webp,xbm",
+                      "sunras,webp,xbm,j2c",
     .priv_data_size = sizeof(VideoMuxData),
     .video_codec    = AV_CODEC_ID_MJPEG,
     .write_header   = write_header,