Commit 0250fc21 authored by Marton Balint's avatar Marton Balint

avformat/img2enc: return error if image rename fails

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 123ff81a
......@@ -180,7 +180,9 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
if (!img->is_pipe) {
ff_format_io_close(s, &pb[0]);
for (i = 0; i < nb_renames; i++) {
ff_rename(img->tmp[i], img->target[i], s);
int ret = ff_rename(img->tmp[i], img->target[i], s);
if (ret < 0)
return ret;
}
}
......
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