45 const uint8_t *
b = p->buf;
47 if (
b[0] == 0x04 && (
b[1] == 0x00 ||
b[1] == 0x04 ||
b[1] == 0x0C ||
b[1] == 0x14))
56 unsigned int sample_rate,
header;
98 int packet_size = 76*cdata->
channels;
108 .p.name =
"ea_cdata",
110 .p.extensions =
"cdata",
unsigned int avio_rb16(AVIOContext *s)
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
int avio_r8(AVIOContext *s)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Public libavutil channel layout APIs header.
static int cdata_probe(const AVProbeData *p)
static int cdata_read_header(AVFormatContext *s)
static int cdata_read_packet(AVFormatContext *s, AVPacket *pkt)
static int read_header(FFV1Context *f, RangeCoder *c)
@ AV_CODEC_ID_ADPCM_EA_XAS
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
#define AV_CHANNEL_LAYOUT_5POINT1_BACK
#define AV_CHANNEL_LAYOUT_QUAD
@ AV_CHANNEL_ORDER_UNSPEC
Only the channel count is specified, without any further information about the channel order.
#define AV_LOG_INFO
Standard information.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static const uint8_t header[24]
An AVChannelLayout holds information about the channel layout of audio data.
int nb_channels
Number of channels in this layout.
AVChannelLayout ch_layout
The channel layout and number of channels.
enum AVMediaType codec_type
General type of the encoded data.
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
The number of audio samples per second.
This structure stores compressed data.
This structure contains the data a format has to probe a file.
AVCodecParameters * codecpar
Codec parameters associated with this stream.