[FFmpeg-devel] [PATCH] ac3enc: fix bug in stereo rematrixing decision.

Justin Ruggles justin.ruggles
Wed Feb 16 01:30:24 CET 2011

The rematrixing strategy reuse flags are not reset between frames, so they
need to be initialized for all blocks, not just block 0.
We either have to check for !block->new_rematrixing_strategy or blk.  I can't remove both. Here is an alternative patch.

 libavcodec/ac3enc.c        |    3 +--
 tests/ref/acodec/ac3_fixed |    2 +-
 tests/ref/seek/ac3_rm      |   30 ++++++++++++++++++++----------
 3 files changed, 22 insertions(+), 13 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ac3enc-fix-bug-in-stereo-rematrixing-decision.patch
Type: text/x-patch
Size: 4697 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110215/7a1281ae/attachment.bin>

More information about the ffmpeg-devel mailing list