summaryrefslogtreecommitdiff
path: root/libavformat/vocdec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-10-12 20:30:12 +0000
committerPaul B Mahol <onemda@gmail.com>2013-10-13 09:50:38 +0000
commitfa7e9f940140590f0300cd8887678e9d27a5c57d (patch)
treef01c0ee3a7e838cb2efa32c732b360eff34b4aea /libavformat/vocdec.c
parent4b948dcadb8b4cd69990a1bb3142cc9456fbcfdb (diff)
downloadffmpeg-fa7e9f940140590f0300cd8887678e9d27a5c57d.tar.gz
avformat/vocdec: return AVERROR_EOF when EOF is reached
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/vocdec.c')
-rw-r--r--libavformat/vocdec.c2
1 files changed, 1 insertions, 1 deletions
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)