Commit 33fc4cc7 authored by Burt P's avatar Burt P Committed by Michael Niedermayer

af_hdcd: fewer false positives by ignoring code_counterC in HDCD detection

Signed-off-by: 's avatarBurt P <pburt0@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent e29d2d9c
...@@ -1094,7 +1094,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) ...@@ -1094,7 +1094,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
s->uses_peak_extend |= !!state->count_peak_extend; s->uses_peak_extend |= !!state->count_peak_extend;
s->uses_transient_filter |= !!state->count_transient_filter; s->uses_transient_filter |= !!state->count_transient_filter;
s->max_gain_adjustment = FFMIN(s->max_gain_adjustment, GAINTOFLOAT(state->max_gain)); s->max_gain_adjustment = FFMIN(s->max_gain_adjustment, GAINTOFLOAT(state->max_gain));
s->hdcd_detected |= state->code_counterC || state->code_counterB || state->code_counterA; s->hdcd_detected |= state->code_counterB || state->code_counterA;
} }
av_frame_free(&in); av_frame_free(&in);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment