Mercurial > libavcodec.hg
diff ac3_parser.c @ 6643:4d04fcb5e1e4 libavcodec
Add new_frame_start and need_next_header.
based on a patch by Bartlomiej
author | michael |
---|---|
date | Sat, 19 Apr 2008 01:59:55 +0000 |
parents | 866b9ade048c |
children | 83f805f7a854 |
line wrap: on
line diff
--- a/ac3_parser.c Sat Apr 19 01:50:40 2008 +0000 +++ b/ac3_parser.c Sat Apr 19 01:59:55 2008 +0000 @@ -123,7 +123,8 @@ return 0; } -static int ac3_sync(uint64_t state, AACAC3ParseContext *hdr_info) +static int ac3_sync(uint64_t state, AACAC3ParseContext *hdr_info, + int *need_next_header, int *new_frame_start) { int err; uint64_t tmp = be2me_64(state); @@ -139,6 +140,8 @@ hdr_info->channels = hdr.channels; hdr_info->samples = AC3_FRAME_SIZE; + *need_next_header = 0; + *new_frame_start = 1; return hdr.frame_size; }