avformat/img2enc: reindent after last commit

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2019-12-26 20:54:14 +01:00
parent 04e36fc4e1
commit 43d5ddb4b5

View File

@ -131,7 +131,6 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
int ret, i;
int nb_renames = 0;
{
if (img->update) {
av_strlcpy(filename, img->path, sizeof(filename));
} else if (img->use_strftime) {
@ -172,7 +171,6 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
}
if (img->use_rename)
nb_renames = i + 1;
}
if (img->split_planes) {
int ysize = par->width * par->height;
@ -198,14 +196,12 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
avio_write(pb[0], pkt->data, pkt->size);
}
avio_flush(pb[0]);
{
ff_format_io_close(s, &pb[0]);
for (i = 0; i < nb_renames; i++) {
int ret = ff_rename(img->tmp[i], img->target[i], s);
if (ret < 0)
return ret;
}
}
img->img_number++;
return 0;