Browse Source

mp3: Forward seeking errors

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n2.8
Luca Barbato 10 years ago
parent
commit
a5a6a786bf
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/mp3dec.c

+ 3
- 1
libavformat/mp3dec.c 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;
}


Loading…
Cancel
Save