aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-12 17:10:26 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-12 17:10:26 +0100
commitc3204856331b9c34bf7c4fd83527c5065e4cdd7e (patch)
treedae654f328c9c250713b1554509a1d00a98fa48e /libavformat
parent3e8b17f05b916087755e79545e63d92ae6323a05 (diff)
downloadffmpeg-c3204856331b9c34bf7c4fd83527c5065e4cdd7e.tar.gz
avformat/asfdec: pass on error code from avio_seek()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/asfdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index b5400b5f87..52773ae57e 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -1473,8 +1473,8 @@ static int asf_build_simple_index(AVFormatContext *s, int stream_index)
int64_t current_pos = avio_tell(s->pb);
int ret = 0;
- if(avio_seek(s->pb, asf->data_object_offset + asf->data_object_size, SEEK_SET) < 0) {
- return AVERROR_INVALIDDATA;
+ if((ret = avio_seek(s->pb, asf->data_object_offset + asf->data_object_size, SEEK_SET)) < 0) {
+ return ret;
}
if ((ret = ff_get_guid(s->pb, &g)) < 0)