af_hdcd: fewer false positives by ignoring code_counterC in HDCD detection

Signed-off-by: Burt P <pburt0@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/228/head
Burt P 8 years ago committed by Michael Niedermayer
parent e29d2d9c92
commit 33fc4cc7c6
  1. 2
      libavfilter/af_hdcd.c

@ -1094,7 +1094,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
s->uses_peak_extend |= !!state->count_peak_extend;
s->uses_transient_filter |= !!state->count_transient_filter;
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);

Loading…
Cancel
Save