mp3: Forward seeking errors

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Luca Barbato 2015-07-12 15:48:00 +02:00
parent 32c8d89c03
commit a5a6a786bf

View 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;
}