From fa7e9f940140590f0300cd8887678e9d27a5c57d Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 12 Oct 2013 20:30:12 +0000 Subject: [PATCH] avformat/vocdec: return AVERROR_EOF when EOF is reached Signed-off-by: Paul B Mahol --- libavformat/vocdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c index ceec81f51e..0b6b5a59ae 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)