aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2007-03-20 02:12:13 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2007-03-20 02:12:13 +0000
commitb5a05cc29588f305ec1b1dc6598c8a7938825ea7 (patch)
tree861ced93c9f2efef28799c036efb47655d3c70b5 /libavcodec/ac3.c
parent8a0cdea15725e194786d5d93d0087db5b6fb2524 (diff)
downloadffmpeg-b5a05cc29588f305ec1b1dc6598c8a7938825ea7.tar.gz
fix handling of special case for lowest snroffset. regressions are unaffected.
Originally committed as revision 8450 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3.c')
-rw-r--r--libavcodec/ac3.c6
1 files changed, 6 insertions, 0 deletions
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 {