[FFmpeg-cvslog] ape: return error if seeking to the current packet fails in ape_read_packet ()
Justin Ruggles
git at videolan.org
Tue Feb 7 02:02:59 CET 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Feb 4 16:29:37 2012 -0500| [1bc035bc03542c0b2215effc0e53c5c9d2e786ac] | committer: Justin Ruggles
ape: return error if seeking to the current packet fails in ape_read_packet()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1bc035bc03542c0b2215effc0e53c5c9d2e786ac
---
libavformat/ape.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libavformat/ape.c b/libavformat/ape.c
index 345648e..a6e9bf1 100644
--- 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))
More information about the ffmpeg-cvslog
mailing list