git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
32c8d89
)
mp3: Forward seeking errors
author
Luca Barbato
<lu_zero@gentoo.org>
Sun, 12 Jul 2015 13:48:00 +0000
(15:48 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Mon, 13 Jul 2015 19:59:53 +0000
(21:59 +0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/mp3dec.c
patch
|
blob
|
history
diff --git
a/libavformat/mp3dec.c
b/libavformat/mp3dec.c
index
72fa60b
..
a875b82
100644
(file)
--- 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;
}