X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwtvdec.c;h=301163bdcb1f69fbda988b9a4019efdea88903e9;hb=82cddf6374017aca4e893f354ab01f05f14a60b5;hp=27be5c9c04d90031084958544f8c72bb10b30587;hpb=9cf1376aadcdd8952c4ba7af0bf8634ddf99da0d;p=ffmpeg diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index 27be5c9c04d..301163bdcb1 100644 --- a/libavformat/wtvdec.c +++ b/libavformat/wtvdec.c @@ -65,7 +65,7 @@ static int64_t seek_by_sector(AVIOContext *pb, int64_t sector, int64_t offset) } /** - * @return bytes read, 0 on end of file, or <0 on error + * @return bytes read, AVERROR_EOF on end of file, or <0 on error */ static int wtvfile_read_packet(void *opaque, uint8_t *buf, int buf_size) { @@ -76,7 +76,7 @@ static int wtvfile_read_packet(void *opaque, uint8_t *buf, int buf_size) if (wf->error || pb->error) return -1; if (wf->position >= wf->length || avio_feof(pb)) - return 0; + return AVERROR_EOF; buf_size = FFMIN(buf_size, wf->length - wf->position); while(nread < buf_size) {