af_hdcd: Process stereo channels together, fix #5727
authorBurt P <pburt0@gmail.com>
Mon, 1 Aug 2016 19:28:39 +0000 (14:28 -0500)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 1 Aug 2016 21:57:55 +0000 (23:57 +0200)
commitd574e22659bd51cdf16723a204fef65a9e783f1d
tree151294826b812bc9f178f74a4a36ffa23c314f5d
parent517dd04f6df3103a6f2bc20b43b956d055ad983f
af_hdcd: Process stereo channels together, fix #5727

Issue #5727: gain adjustment should only be applied if matching
gain value from a valid packet in both channels. The existing functions process
each channel separately, so it was not possible.

* New versions of hdcd_process(), hdcd_scan(), hdcd_integrate() named
  hdcd_*_stereo() that process both channels together.
* target_gain applied will be the last matching target_gain.
* The old single channel functions remain as an option. They can be
  used by: -af hdcd=process_stereo=0.

Signed-off-by: Burt P <pburt0@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/af_hdcd.c