Mercurial > libavcodec.hg
comparison aac_ac3_parser.c @ 6639:1980eba5fd0e libavcodec
remove AACAC3FrameFlag
author | michael |
---|---|
date | Fri, 18 Apr 2008 03:09:01 +0000 |
parents | 5e7c69ebc019 |
children | 866b9ade048c |
comparison
equal
deleted
inserted
replaced
6638:cdc496faff19 | 6639:1980eba5fd0e |
---|---|
27 AVCodecContext *avctx, | 27 AVCodecContext *avctx, |
28 const uint8_t **poutbuf, int *poutbuf_size, | 28 const uint8_t **poutbuf, int *poutbuf_size, |
29 const uint8_t *buf, int buf_size) | 29 const uint8_t *buf, int buf_size) |
30 { | 30 { |
31 AACAC3ParseContext *s = s1->priv_data; | 31 AACAC3ParseContext *s = s1->priv_data; |
32 AACAC3FrameFlag frame_flag; | |
33 const uint8_t *buf_ptr; | 32 const uint8_t *buf_ptr; |
34 int len; | 33 int len; |
35 | 34 |
36 *poutbuf = NULL; | 35 *poutbuf = NULL; |
37 *poutbuf_size = 0; | 36 *poutbuf_size = 0; |
49 buf_size -= len; | 48 buf_size -= len; |
50 } | 49 } |
51 | 50 |
52 if (s->frame_size == 0) { | 51 if (s->frame_size == 0) { |
53 if ((s->inbuf_ptr - s->inbuf) == s->header_size) { | 52 if ((s->inbuf_ptr - s->inbuf) == s->header_size) { |
54 len = s->sync(s, &frame_flag); | 53 len = s->sync(s); |
55 if (len == 0) { | 54 if (len == 0) { |
56 /* no sync found : move by one byte (inefficient, but simple!) */ | 55 /* no sync found : move by one byte (inefficient, but simple!) */ |
57 memmove(s->inbuf, s->inbuf + 1, s->header_size - 1); | 56 memmove(s->inbuf, s->inbuf + 1, s->header_size - 1); |
58 s->inbuf_ptr--; | 57 s->inbuf_ptr--; |
59 } else { | 58 } else { |