avformat/utils: propagate return value of ff_format_io_close in ff_format_shift_data

Signed-off-by: Marton Balint <cus@passwd.hu>
pull/383/head
Marton Balint 3 years ago
parent 26d6c81dc6
commit 573b6b8a60
  1. 2
      libavformat/utils.c

@ -2085,7 +2085,7 @@ int ff_format_shift_data(AVFormatContext *s, int64_t read_start, int shift_size)
avio_write(s->pb, read_buf[read_buf_id], n);
pos += n;
} while (pos < pos_end);
ff_format_io_close(s, &read_pb);
ret = ff_format_io_close(s, &read_pb);
end:
av_free(buf);

Loading…
Cancel
Save