Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavfilter/af_drmeter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/af_drmeter.c b/libavfilter/af_drmeter.c
index ecccb65186..425c25ae87 100644
--- a/libavfilter/af_drmeter.c
+++ b/libavfilter/af_drmeter.c
@@ -167,6 +167,11 @@ static void print_stats(AVFilterContext *ctx)
float chdr, secondpeak, rmssum = 0;
int i, j, first = 0;
+ if (!p->nb_samples) {
+ av_log(ctx, AV_LOG_INFO, "No data, dynamic range not meassurable\n");
+ return;
+ }
+
finish_block(p);
for (i = 0; i <= 10000; i++) {