Mercurial > libavcodec.hg
changeset 4689:c7828f1ae244 libavcodec
fix handling of special case for lowest snroffset. regressions are unaffected.
author | jbr |
---|---|
date | Tue, 20 Mar 2007 02:12:13 +0000 |
parents | 1cefcd7da878 |
children | 1bfdcac74275 |
files | ac3.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ac3.c Mon Mar 19 16:07:51 2007 +0000 +++ b/ac3.c Tue Mar 20 02:12:13 2007 +0000 @@ -175,6 +175,12 @@ { 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 {