Commit 43d5ddb4 authored by Marton Balint's avatar Marton Balint

avformat/img2enc: reindent after last commit

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 04e36fc4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment