You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
avformat/vocdec: return AVERROR_EOF when EOF is reached
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@ -75,7 +75,7 @@ ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
|
|||||||
while (!voc->remaining_size) {
|
while (!voc->remaining_size) {
|
||||||
type = avio_r8(pb);
|
type = avio_r8(pb);
|
||||||
if (type == VOC_TYPE_EOF)
|
if (type == VOC_TYPE_EOF)
|
||||||
return AVERROR(EIO);
|
return AVERROR_EOF;
|
||||||
voc->remaining_size = avio_rl24(pb);
|
voc->remaining_size = avio_rl24(pb);
|
||||||
if (!voc->remaining_size) {
|
if (!voc->remaining_size) {
|
||||||
if (!s->pb->seekable)
|
if (!s->pb->seekable)
|
||||||
|
Reference in New Issue
Block a user