]> git.sesse.net Git - ffmpeg/commitdiff
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 72fa60b33060ef8c38830628d3df0efb4b01e12d..a875b82c0a23d3843d5f2cf872115974e50ff412 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;
 }