projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9814974
)
ape: return error if seeking to the current packet fails in ape_read_packet()
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 4 Feb 2012 21:29:37 +0000
(16:29 -0500)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Mon, 6 Feb 2012 18:09:11 +0000
(13:09 -0500)
libavformat/ape.c
patch
|
blob
|
history
diff --git
a/libavformat/ape.c
b/libavformat/ape.c
index
345648e
..
a6e9bf1
100644
(file)
--- a/
libavformat/ape.c
+++ b/
libavformat/ape.c
@@
-361,7
+361,8
@@
static int ape_read_packet(AVFormatContext * s, AVPacket * pkt)
if (ape->currentframe > ape->totalframes)
return AVERROR(EIO);
- avio_seek (s->pb, ape->frames[ape->currentframe].pos, SEEK_SET);
+ if (avio_seek(s->pb, ape->frames[ape->currentframe].pos, SEEK_SET) < 0)
+ return AVERROR(EIO);
/* Calculate how many blocks there are in this frame */
if (ape->currentframe == (ape->totalframes - 1))