Mercurial > libavcodec.hg
diff aac_parser.c @ 6566:9b8a881e871c libavcodec
Corrections of errors in aac_ac3_parser
author | bwolowiec |
---|---|
date | Mon, 07 Apr 2008 20:54:08 +0000 |
parents | 013def14c931 |
children | 5e7c69ebc019 |
line wrap: on
line diff
--- a/aac_parser.c Sat Apr 05 20:09:36 2008 +0000 +++ b/aac_parser.c Mon Apr 07 20:54:08 2008 +0000 @@ -34,7 +34,7 @@ int size, rdb, ch, sr; uint64_t tmp = be2me_64(state); - init_get_bits(&bits, (uint8_t *)&tmp, AAC_HEADER_SIZE * 8); + init_get_bits(&bits, ((uint8_t *)&tmp)+8-AAC_HEADER_SIZE, AAC_HEADER_SIZE * 8); if(get_bits(&bits, 12) != 0xfff) return 0;