From b5a05cc29588f305ec1b1dc6598c8a7938825ea7 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Tue, 20 Mar 2007 02:12:13 +0000 Subject: [PATCH] fix handling of special case for lowest snroffset. regressions are unaffected. Originally committed as revision 8450 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ac3.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c index a51aca07d5..3749d02f01 100644 --- a/libavcodec/ac3.c +++ b/libavcodec/ac3.c @@ -175,6 +175,12 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end, { int i, j, k, end1, v, address; + /* special case, if snroffset is -960, set all bap's to zero */ + if(snroffset == -960) { + memset(bap, 0, 256); + return; + } + i = start; j = masktab[start]; do {