ffmpeg | branch: master | Luca Barbato <lu_z...@gentoo.org> | Sun Jul 12 15:48:00 2015 +0200| [a5a6a786bfebb85c269abc25559fd71963983581] | committer: Luca Barbato
mp3: Forward seeking errors Signed-off-by: Luca Barbato <lu_z...@gentoo.org> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a5a6a786bfebb85c269abc25559fd71963983581 --- libavformat/mp3dec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index 72fa60b..a875b82 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; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog