Corrections of errors in aac_ac3_parser

Originally committed as revision 12759 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Bartlomiej Wolowiec
2008-04-07 20:54:08 +00:00
parent 0a5754c3b7
commit c09ed33e18
4 changed files with 11 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info,
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;