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

@@ -130,7 +130,7 @@ static int ac3_sync(uint64_t state, AACAC3ParseContext *hdr_info,
uint64_t tmp = be2me_64(state);
AC3HeaderInfo hdr;
err = ff_ac3_parse_header((uint8_t *)&tmp, &hdr);
err = ff_ac3_parse_header(((uint8_t *)&tmp)+8-AC3_HEADER_SIZE, &hdr);
if(err < 0)
return 0;