aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-09-21 14:28:23 +0200
committerPaul B Mahol <onemda@gmail.com>2022-09-21 14:32:07 +0200
commit6a150fcdb917787b356b3b7eb87bfbe7d7a0e9d5 (patch)
tree96ecbeffa91af9ef88e7e6aeb039d3bace8e18c2 /libavcodec
parent2ca2d46f0b1b6ac23dfdb73d67efcadca66384c6 (diff)
downloadffmpeg-6a150fcdb917787b356b3b7eb87bfbe7d7a0e9d5.tar.gz
avcodec/mlpenc: analyze only if there are samples
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mlpenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index b66f3a3067..73fdfc01cc 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -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)) {