Signed-off-by: Nicolas George <[email protected]>
---
libavformat/aviobuf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Not related to the issue, but seems more correct.
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index bb5bcf7a14..dfe8437b18 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -534,7 +534,7 @@ static int read_packet_wrapper(AVIOContext *s, uint8_t
*buf, int size)
#if FF_API_OLD_AVIO_EOF_0
if (!ret && !s->max_packet_size) {
av_log(s, AV_LOG_WARNING, "Invalid return value 0 for stream
protocol\n");
- ret = AVERROR_EOF;
+ ret = AVERROR(EINVAL);
}
#else
av_assert2(ret || s->max_packet_size);
--
2.14.2
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel