[FFmpeg-cvslog] avformat/img2enc: simplify split planes extension selection.
Clément Bœsch
git at videolan.org
Thu Nov 7 20:33:52 CET 2013
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Thu Nov 7 20:28:44 2013 +0100| [3bcd5c1e31e2f222a65e727a9681b23b89506f38] | committer: Clément Bœsch
avformat/img2enc: simplify split planes extension selection.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3bcd5c1e31e2f222a65e727a9681b23b89506f38
---
libavformat/img2enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c
index daf6fc3..3529e12 100644
--- a/libavformat/img2enc.c
+++ b/libavformat/img2enc.c
@@ -106,7 +106,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
if (!img->split_planes || i+1 >= desc->nb_components)
break;
- filename[strlen(filename) - 1] = ((int[]){'U','V','A','x'})[i];
+ filename[strlen(filename) - 1] = "UVAx"[i];
}
} else {
pb[0] = s->pb;
More information about the ffmpeg-cvslog
mailing list