Browse Source

avformat/img2enc: simplify split planes extension selection.

tags/n2.2-rc1
Clément Bœsch 12 years ago
parent
commit
3bcd5c1e31
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/img2enc.c

+ 1
- 1
libavformat/img2enc.c View File

@@ -106,7 +106,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)


if (!img->split_planes || i+1 >= desc->nb_components) if (!img->split_planes || i+1 >= desc->nb_components)
break; break;
filename[strlen(filename) - 1] = ((int[]){'U','V','A','x'})[i];
filename[strlen(filename) - 1] = "UVAx"[i];
} }
} else { } else {
pb[0] = s->pb; pb[0] = s->pb;


Loading…
Cancel
Save