30 #include "libavutil/intreadwrite.h"
34 #define XA00_TAG MKTAG('X', 'A', 0, 0)
35 #define XAI0_TAG MKTAG('X', 'A', 'I', 0)
36 #define XAJ0_TAG MKTAG('X', 'A', 'J', 0)
45 int channels, srate, bits_per_sample;
59 if (!channels || channels > 8 || !srate || srate > 192000 ||
60 bits_per_sample < 4 || bits_per_sample > 32)
102 unsigned int packet_size;
static int xa_probe(AVProbeData *p)
AVCodecContext * codec
Codec context associated with this stream.
int index
stream index in AVFormatContext
AVInputFormat ff_xa_demuxer
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
#define AVERROR_EOF
End of file.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
void * priv_data
Format private data.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int xa_read_packet(AVFormatContext *s, AVPacket *pkt)
int buf_size
Size of buf except extra allocated bytes.
int bit_rate
the average bitrate
AVStream ** streams
A list of all streams in the file.
static int read_header(FFV1Context *f)
enum AVMediaType codec_type
int sample_rate
samples per second
AVIOContext * pb
I/O context.
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
This structure contains the data a format has to probe a file.
static int xa_read_header(AVFormatContext *s)
int64_t start_time
Decoding: pts of the first frame of the stream, in stream time base.
int channels
number of audio channels
This structure stores compressed data.