From a5a6a786bfebb85c269abc25559fd71963983581 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sun, 12 Jul 2015 15:48:00 +0200 Subject: [PATCH] mp3: Forward seeking errors Signed-off-by: Luca Barbato --- libavformat/mp3dec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }