Commit fa7e9f94 authored by Paul B Mahol's avatar Paul B Mahol

avformat/vocdec: return AVERROR_EOF when EOF is reached

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 4b948dca
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment