OSDN Git Service

mp3: Forward seeking errors
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 12 Jul 2015 13:48:00 +0000 (15:48 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 13 Jul 2015 19:59:53 +0000 (21:59 +0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/mp3dec.c

index 72fa60b..a875b82 100644 (file)
@@ -422,7 +422,9 @@ static int reposition(AVFormatContext *s, int64_t pos)
     if (best_valid <= 0)
         return AVERROR(ENOSYS);
 
-    avio_seek(s->pb, best_pos, SEEK_SET);
+    p = avio_seek(s->pb, best_pos, SEEK_SET);
+    if (p < 0)
+        return p;
 
     return 0;
 }