diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-04-19 01:59:55 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-04-19 01:59:55 +0000 |
commit | 133ac890fbe48b2989a257eb58bfc0b3690ee054 (patch) | |
tree | b61a61945cc719a15eda2e351c751c687a880079 /libavcodec/ac3_parser.c | |
parent | 454064ad1eb39ffbea4906dbe2e246e18a5d5d67 (diff) | |
download | ffmpeg-133ac890fbe48b2989a257eb58bfc0b3690ee054.tar.gz |
Add new_frame_start and need_next_header.
based on a patch by Bartlomiej
Originally committed as revision 12895 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3_parser.c')
-rw-r--r-- | libavcodec/ac3_parser.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/ac3_parser.c b/libavcodec/ac3_parser.c index 511223398c..39cb77d868 100644 --- a/libavcodec/ac3_parser.c +++ b/libavcodec/ac3_parser.c @@ -123,7 +123,8 @@ int ff_ac3_parse_header(const uint8_t buf[7], AC3HeaderInfo *hdr) 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 @@ static int ac3_sync(uint64_t state, AACAC3ParseContext *hdr_info) hdr_info->channels = hdr.channels; hdr_info->samples = AC3_FRAME_SIZE; + *need_next_header = 0; + *new_frame_start = 1; return hdr.frame_size; } |