summaryrefslogtreecommitdiff
path: root/libavformat/mp3dec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-07-12 15:48:00 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-07-13 21:59:53 +0200
commita5a6a786bfebb85c269abc25559fd71963983581 (patch)
tree3ac2749f7e91f93ba4fe0973bb0270b0d009142c /libavformat/mp3dec.c
parent32c8d89c036b0e75ece74aea638df587099def0b (diff)
downloadffmpeg-a5a6a786bfebb85c269abc25559fd71963983581.tar.gz
mp3: Forward seeking errors
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/mp3dec.c')
-rw-r--r--libavformat/mp3dec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 72fa60b330..a875b82c0a 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -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;
}