From 3bcd5c1e31e2f222a65e727a9681b23b89506f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 7 Nov 2013 20:28:44 +0100 Subject: [PATCH] avformat/img2enc: simplify split planes extension selection. --- libavformat/img2enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c index daf6fc3789..3529e12c55 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;