]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/proresenc_kostya.c
avfilter/formats: Remove avfilter_make_format64_list()
[ffmpeg] / libavcodec / proresenc_kostya.c
index d8edd12f3418046bfdf0a9fb5c75511a1714f195..54fc6707a18f2c9dd2da1b8720c37f9fba9f0649 100644 (file)
@@ -619,11 +619,6 @@ static int encode_slice(AVCodecContext *avctx, const AVFrame *pic,
         flush_put_bits(pb);
         sizes[i]   = put_bytes_output(pb) - total_size;
         total_size = put_bytes_output(pb);
-        if (put_bits_left(pb) < 0) {
-            av_log(avctx, AV_LOG_ERROR,
-                   "Underestimated required buffer size.\n");
-            return AVERROR_BUG;
-        }
     }
     return total_size;
 }