27 #define ALP_TAG MKTAG('A', 'L', 'P', ' ') 28 #define ALP_MAX_READ_SIZE 4096 48 if (i != 8 && i != 12)
51 if (strncmp(
"ADPCM", p->
buf + 8, 6) != 0)
75 else if (ret !=
sizeof(hdr.
adpcm))
78 if (strncmp(
"ADPCM", hdr.
adpcm,
sizeof(hdr.
adpcm)) != 0)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
static int alp_read_packet(AVFormatContext *s, AVPacket *pkt)
#define avpriv_request_sample(...)
static int alp_read_header(AVFormatContext *s)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
#define AV_CH_LAYOUT_STEREO
This struct describes the properties of an encoded stream.
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
#define ALP_MAX_READ_SIZE
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
AVStream ** streams
A list of all streams in the file.
uint64_t channel_layout
Audio only.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
#define i(width, name, range_min, range_max)
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
enum AVMediaType codec_type
General type of the encoded data.
int flags
A combination of AV_PKT_FLAG values.
int avio_r8(AVIOContext *s)
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
common internal API header
int block_align
Audio only.
AVInputFormat ff_alp_demuxer
static int alp_probe(const AVProbeData *p)
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
AVIOContext * pb
I/O context.
This structure contains the data a format has to probe a file.
int bits_per_raw_sample
This is the number of valid bits in each output sample.
int sample_rate
Audio only.
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
#define AV_CH_LAYOUT_MONO
This structure stores compressed data.