avcodec/mlpenc: analyze only if there are samples

This commit is contained in:
Paul B Mahol 2022-09-21 14:28:23 +02:00
parent 2ca2d46f0b
commit 6a150fcdb9

View File

@ -2189,7 +2189,8 @@ input_and_return:
input_to_sample_buffer(ctx);
analyze_sample_buffer(ctx);
if (number_of_samples > 0)
analyze_sample_buffer(ctx);
}
if (ctx->frame_index == (ctx->max_restart_interval - 1)) {