]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/aviobuf.c
avformat/aviobuf: End grace period of allowing 0 from read_packet
[ffmpeg] / libavformat / aviobuf.c
index 518cb1112936c60c691ae500cd6fb1bfef8a549e..1ecc7fb095f500d553ab669a7d3ae6dcdf76b043 100644 (file)
@@ -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;
 }