[FFmpeg-devel] [PATCH] avformat/vocdec: return AVERROR_EOF when EOF is reached
Paul B Mahol
onemda at gmail.com
Sat Oct 12 22:44:33 CEST 2013
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
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)
--
1.7.11.2
More information about the ffmpeg-devel
mailing list