mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-06 07:10:21 +00:00
avformat/img2enc: return error if image rename fails
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
123ff81a45
commit
0250fc2146
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user