27 uint8_t **poutbuf,
int *poutbuf_size,
28 const uint8_t *buf,
int buf_size,
int keyframe){
29 uint32_t header, extraheader;
30 int mode_extension, header_size;
38 mode_extension= (header>>4)&3;
42 *poutbuf= (uint8_t *) buf;
43 *poutbuf_size= buf_size;
60 if((extraheader&
MP3_MASK) != (header&MP3_MASK))
61 goto output_unchanged;
63 header_size= (header&0x10000) ? 4 : 6;
65 *poutbuf_size= buf_size - header_size;
70 if((header & (3<<19)) != 3<<19){
71 (*poutbuf)[1] &= 0x3F;
72 (*poutbuf)[1] |= mode_extension<<6;
73 FFSWAP(
int, (*poutbuf)[1], (*poutbuf)[2]);
75 (*poutbuf)[1] &= 0x8F;
76 (*poutbuf)[1] |= mode_extension<<4;
#define FF_COMPLIANCE_EXPERIMENTAL
Allow nonstandardized experimental things.
AV_WL32 AV_WL24 AV_WL16 AV_RB32
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
void av_log(void *avcl, int level, const char *fmt,...)
main external API structure.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
#define FF_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
int channels
number of audio channels
#define FFSWAP(type, a, b)
int strict_std_compliance
strictly follow the standard (MPEG4, ...).