diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-10-12 20:30:12 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-10-13 09:50:38 +0000 |
commit | fa7e9f940140590f0300cd8887678e9d27a5c57d (patch) | |
tree | f01c0ee3a7e838cb2efa32c732b360eff34b4aea /libavformat | |
parent | 4b948dcadb8b4cd69990a1bb3142cc9456fbcfdb (diff) | |
download | ffmpeg-streaming-fa7e9f940140590f0300cd8887678e9d27a5c57d.zip ffmpeg-streaming-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')
-rw-r--r-- | libavformat/vocdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |