diff options
-rw-r--r-- | libavcodec/ac3.c | 6 |
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 { |