[FFmpeg-cvslog] avformat/vocdec: return AVERROR_EOF when EOF is reached
Paul B Mahol
git at videolan.org
Sun Oct 13 11:50:58 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Oct 12 20:30:12 2013 +0000| [fa7e9f940140590f0300cd8887678e9d27a5c57d] | committer: Paul B Mahol
avformat/vocdec: return AVERROR_EOF when EOF is reached
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fa7e9f940140590f0300cd8887678e9d27a5c57d
---
libavformat/vocdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c
index ceec81f..0b6b5a5 100644
--- a/libavformat/vocdec.c
+++ b/libavformat/vocdec.c
@@ -75,7 +75,7 @@ ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
while (!voc->remaining_size) {
type = avio_r8(pb);
if (type == VOC_TYPE_EOF)
- return AVERROR(EIO);
+ return AVERROR_EOF;
voc->remaining_size = avio_rl24(pb);
if (!voc->remaining_size) {
if (!s->pb->seekable)
More information about the ffmpeg-cvslog
mailing list