[FFmpeg-devel] [PATCH]Allow .y as extension for image2

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Apr 5 00:46:47 CEST 2014


Hi!

Attached patch allows the user to encode to component files without 
specifying -f image2.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c
index 684ed14..37dfbec 100644
--- a/libavformat/img2enc.c
+++ b/libavformat/img2enc.c
@@ -194,7 +194,7 @@ AVOutputFormat ff_image2_muxer = {
     .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,j2c,j2k,xwd,sun,ras,rs,im1,im8,im24,"
-                      "sunras,webp,xbm,xface,pix",
+                      "sunras,webp,xbm,xface,pix,y",
     .priv_data_size = sizeof(VideoMuxData),
     .video_codec    = AV_CODEC_ID_MJPEG,
     .write_header   = write_header,


More information about the ffmpeg-devel mailing list