aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2013-11-07 20:28:44 +0100
committerClément Bœsch <u@pkh.me>2013-11-07 20:30:43 +0100
commit3bcd5c1e31e2f222a65e727a9681b23b89506f38 (patch)
tree74a4358f37441ae837d03e0db93d074dc5253013 /libavformat
parent3e036d407d1857b814f8ce8b59deb7280f726661 (diff)
downloadffmpeg-3bcd5c1e31e2f222a65e727a9681b23b89506f38.tar.gz
avformat/img2enc: simplify split planes extension selection.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/img2enc.c2
1 files changed, 1 insertions, 1 deletions
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;