mirror of https://git.videolan.org/git/ffmpeg.git
avformat/asfdec: pass on error code from avio_seek()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3e8b17f05b
commit
c320485633
|
@ -1473,8 +1473,8 @@ static int asf_build_simple_index(AVFormatContext *s, int stream_index)
|
||||||
int64_t current_pos = avio_tell(s->pb);
|
int64_t current_pos = avio_tell(s->pb);
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if(avio_seek(s->pb, asf->data_object_offset + asf->data_object_size, SEEK_SET) < 0) {
|
if((ret = avio_seek(s->pb, asf->data_object_offset + asf->data_object_size, SEEK_SET)) < 0) {
|
||||||
return AVERROR_INVALIDDATA;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = ff_get_guid(s->pb, &g)) < 0)
|
if ((ret = ff_get_guid(s->pb, &g)) < 0)
|
||||||
|
|
Loading…
Reference in New Issue