summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-06 16:51:13 +0100
committerJames Almer <jamrial@gmail.com>2021-04-27 10:43:09 -0300
commit252500a78fe1a31abc79e6070d16f50382c39343 (patch)
tree8f0fd8342ddeba3df1444a73658dd0fd0e79b6db /libavformat/aviobuf.c
parent7b6012efaae549b8e624876dba9550cb003f98b1 (diff)
avformat/aviobuf: End grace period of allowing 0 from read_packet
See a606f27f4c610708fa96e35eed7b7537d3d8f712. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 518cb11129..1ecc7fb095 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -519,14 +519,7 @@ static int read_packet_wrapper(AVIOContext *s, uint8_t *buf, int size)
if (!s->read_packet)
return AVERROR(EINVAL);
ret = s->read_packet(s->opaque, buf, size);
-#if FF_API_OLD_AVIO_EOF_0
- if (!ret && !s->max_packet_size) {
- av_log(NULL, AV_LOG_WARNING, "Invalid return value 0 for stream protocol\n");
- ret = AVERROR_EOF;
- }
-#else
av_assert2(ret || s->max_packet_size);
-#endif
return ret;
}