summaryrefslogtreecommitdiff
path: root/libavcodec/ac3_parser.c
diff options
context:
space:
mode:
authorBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-04-07 20:54:08 +0000
committerBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-04-07 20:54:08 +0000
commitc09ed33e186ea0ba4ab96599bd69aea462aabeda (patch)
treede7576a064c9ad042ed55f3a155896eb6c57c6cb /libavcodec/ac3_parser.c
parent0a5754c3b729cf8fc9b938ac0724ee7261aa1606 (diff)
Corrections of errors in aac_ac3_parser
Originally committed as revision 12759 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3_parser.c')
-rw-r--r--libavcodec/ac3_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3_parser.c b/libavcodec/ac3_parser.c
index 57cd87f10d..a1d57e4c6e 100644
--- a/libavcodec/ac3_parser.c
+++ b/libavcodec/ac3_parser.c
@@ -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;