mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
avformat/img2enc: simplify split planes extension selection.
This commit is contained in:
parent
3e036d407d
commit
3bcd5c1e31
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user