]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/proresenc_kostya.c
avcodec/mpeg12dec: Check actual aspect ratio instead of aspect_ratio_info
[ffmpeg] / libavcodec / proresenc_kostya.c
index 5f432a97cd48269abfb24a95696dfe1d51ec9f2a..3418b464c6ca35d38a210ffe89271bc3648ebe65 100644 (file)
@@ -824,10 +824,9 @@ static int find_slice_quant(AVCodecContext *avctx, const AVFrame *pic,
         if (ctx->alpha_bits)
             bits += estimate_alpha_plane(ctx, &error, src, linesize[3],
                                          mbs_per_slice, q, td->blocks[3]);
-        if (bits > 65000 * 8) {
+        if (bits > 65000 * 8)
             error = SCORE_LIMIT;
-            break;
-        }
+
         slice_bits[q]  = bits;
         slice_score[q] = error;
     }