summaryrefslogtreecommitdiff
path: root/libavcodec/aac_ac3_parser.c
diff options
context:
space:
mode:
authorBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-03-28 19:59:58 +0000
committerBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-03-28 19:59:58 +0000
commitbe1e2a2bfa592ff14355c6b97e90c530e2c0fcc0 (patch)
treea9d7171af4f5eda9a96a8aff32b824034df9b474 /libavcodec/aac_ac3_parser.c
parent5610f20ed4358af3c1380ceb79ee51e258df79bf (diff)
removal of stream_type in AACAC3ParseContext and adding AACAC3FrameFlag
Originally committed as revision 12622 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac_ac3_parser.c')
-rw-r--r--libavcodec/aac_ac3_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/aac_ac3_parser.c b/libavcodec/aac_ac3_parser.c
index c72965a76f..1193647e90 100644
--- a/libavcodec/aac_ac3_parser.c
+++ b/libavcodec/aac_ac3_parser.c
@@ -29,6 +29,7 @@ int ff_aac_ac3_parse(AVCodecParserContext *s1,
const uint8_t *buf, int buf_size)
{
AACAC3ParseContext *s = s1->priv_data;
+ AACAC3FrameFlag frame_flag;
const uint8_t *buf_ptr;
int len;
@@ -50,7 +51,7 @@ int ff_aac_ac3_parse(AVCodecParserContext *s1,
if (s->frame_size == 0) {
if ((s->inbuf_ptr - s->inbuf) == s->header_size) {
- len = s->sync(s);
+ len = s->sync(s, &frame_flag);
if (len == 0) {
/* no sync found : move by one byte (inefficient, but simple!) */
memmove(s->inbuf, s->inbuf + 1, s->header_size - 1);