54 const uint8_t **poutbuf,
int *poutbuf_size,
55 const uint8_t *buf,
int buf_size)
77 for (i = 0; i < buf_size; i++) {
79 if ((mp->
pc.
state & 0xfffffffe) == 0xf8726fba &&
110 if (mp->
pc.
index + buf_size < 2) {
135 sync_present = buf_size >= 8 && (
AV_RB32(buf + 4) & 0xfffffffe) == 0xf8726fba;
146 parity_bits ^= buf[p++];
147 parity_bits ^= buf[p++];
149 if (i < 0 || buf[p-2] & 0x80) {
150 parity_bits ^= buf[p++];
151 parity_bits ^= buf[p++];
155 if ((((parity_bits >> 4) ^ parity_bits) & 0xF) != 0xF) {
202 *poutbuf_size = buf_size;
#define AV_LOG_WARNING
Something somehow does not look correct.
int64_t bit_rate
the average bitrate
int ff_mlp_read_major_sync(void *log, MLPHeaderInfo *mh, GetBitContext *gb)
Read a major sync info header - contains high level information about the stream - sample rate...
int duration
Duration of the current frame.
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
enum AVSampleFormat sample_fmt
audio sample format
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_RB32
static int mlp_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
bitstream reader API header.
AVCodecParser ff_mlp_parser
int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size)
Combine the (truncated) bitstream to a complete frame.
int overread_index
the index into ParseContext.buffer of the overread bytes
uint64_t channel_layout
Audio channel layout.
void ff_parse_close(AVCodecParserContext *s)
common internal API header
int overread
the number of bytes which where irreversibly read from the next frame
int frame_size
Number of samples per channel in an audio frame.
#define AV_LOG_INFO
Standard information.
int sample_rate
samples per second
main external API structure.
uint32_t state
contains the last few bytes in MSB order
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
#define PARSER_FLAG_COMPLETE_FRAMES
int channels
number of audio channels
av_cold void ff_mlp_init_crc(void)
int key_frame
Set by parser to 1 for key frames and 0 for non-key frames.
static av_cold int mlp_init(AVCodecParserContext *s)