aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/aac_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer2008-04-19 01:59:55 +0000
committerMichael Niedermayer2008-04-19 01:59:55 +0000
commit133ac890fbe48b2989a257eb58bfc0b3690ee054 (patch)
treeb61a61945cc719a15eda2e351c751c687a880079 /libavcodec/aac_parser.c
parent454064ad1eb39ffbea4906dbe2e246e18a5d5d67 (diff)
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/aac_parser.c')
-rw-r--r--libavcodec/aac_parser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/aac_parser.c b/libavcodec/aac_parser.c
index a2e95f7bb1..db2c697725 100644
--- a/libavcodec/aac_parser.c
+++ b/libavcodec/aac_parser.c
@@ -27,7 +27,8 @@
#define AAC_HEADER_SIZE 7
-static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info)
+static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info,
+ int *need_next_header, int *new_frame_start)
{
GetBitContext bits;
int size, rdb, ch, sr;
@@ -67,6 +68,8 @@ static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info)
hdr_info->samples = (rdb + 1) * 1024;
hdr_info->bit_rate = size * 8 * hdr_info->sample_rate / hdr_info->samples;
+ *need_next_header = 0;
+ *new_frame_start = 1;
return size;
}