[FFmpeg-cvslog] avformat/asfdec: pass on error code from avio_seek()

Michael Niedermayer git at videolan.org
Thu Feb 13 00:22:22 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb 12 17:10:26 2014 +0100| [c3204856331b9c34bf7c4fd83527c5065e4cdd7e] | committer: Michael Niedermayer

avformat/asfdec: pass on error code from avio_seek()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c3204856331b9c34bf7c4fd83527c5065e4cdd7e
---

 libavformat/asfdec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index b5400b5..52773ae 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)



More information about the ffmpeg-cvslog mailing list