[FFmpeg-devel] [PATCH] ac3enc: check snr_offset of 0 before failing in cbr_bit_allocation().

Justin Ruggles justin.ruggles
Sun Mar 6 19:36:38 CET 2011

snr_offset does not always start at a multiple of 64, so some values below 64
could go untested without this change.
New patch which uses 0 directly, then sets snr_offset only on success.

 libavcodec/ac3enc.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ac3enc-check-snr_offset-of-0-before-failing-in-cbr_b.patch
Type: text/x-patch
Size: 605 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110306/bc4362d1/attachment.bin>

More information about the ffmpeg-devel mailing list