Signed-off-by: Nicolas George <geo...@nsup.org> --- libavformat/aviobuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index bfd40f5097..3b4c8439d6 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -529,7 +529,7 @@ static int read_packet_wrapper(AVIOContext *s, uint8_t *buf, int size) int ret; if (!s->read_packet) - return AVERROR_EOF; + return AVERROR(EINVAL); ret = s->read_packet(s->opaque, buf, size); #if FF_API_OLD_AVIO_EOF_0 if (!ret && !s->max_packet_size) { -- 2.14.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel