ac3enc: fix bug in stereo rematrixing decision.
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 16 Feb 2011 00:30:24 +0000 (00:30 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 18 Feb 2011 18:52:32 +0000 (19:52 +0100)
commit6159bd0d670f88dc87f515f859100c53b7d81a89
treeabff104d4fc99fe06f304b910867794c848d2e45
parentee60e04c2c07b907bf72d1092c43b972c9c5e725
ac3enc: fix bug in stereo rematrixing decision.

The rematrixing strategy reuse flags are not reset between frames, so they
need to be initialized for all blocks, not just block 0.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 5b54d4b376fbd2c291b8a6dba7d425e28f654bcf)
libavcodec/ac3enc.c
tests/ref/acodec/ac3_fixed
tests/ref/seek/ac3_rm