mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-03 01:33:50 +08:00
Change aac and ac3 parsers to use ff_combine_frame().
Originally committed as revision 12894 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -27,16 +27,18 @@
|
||||
#include "avcodec.h"
|
||||
|
||||
typedef struct AACAC3ParseContext {
|
||||
uint8_t *inbuf_ptr;
|
||||
int frame_size;
|
||||
int header_size;
|
||||
int (*sync)(struct AACAC3ParseContext *hdr_info);
|
||||
uint8_t inbuf[8192]; /* input buffer */
|
||||
int (*sync)(uint64_t state, struct AACAC3ParseContext *hdr_info);
|
||||
|
||||
int channels;
|
||||
int sample_rate;
|
||||
int bit_rate;
|
||||
int samples;
|
||||
|
||||
ParseContext pc;
|
||||
int remaining_size;
|
||||
uint64_t state;
|
||||
} AACAC3ParseContext;
|
||||
|
||||
int ff_aac_ac3_parse(AVCodecParserContext *s1,
|
||||
|
||||
Reference in New Issue
Block a user