35 for (i = 0; i < p->
buf_size - 3; i+=32) {
36 if (p->
buf[i] != p->
buf[i+2] || p->
buf[i+1] != p->
buf[i+3])
38 if (p->
buf[i] != last)
97 .extensions =
"adp,dtk",
static int adp_read_packet(AVFormatContext *s, AVPacket *pkt)
int64_t avio_size(AVIOContext *s)
Get the filesize.
void av_free_packet(AVPacket *pkt)
Free a packet.
AVInputFormat ff_adp_demuxer
void av_shrink_packet(AVPacket *pkt, int size)
Reduce packet size, correctly zeroing padding.
static int adp_read_header(AVFormatContext *s)
#define AV_CH_LAYOUT_STEREO
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AVERROR_EOF
End of file.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
uint64_t channel_layout
Audio channel layout.
AVCodecContext * codec
Codec context associated with this stream.
int buf_size
Size of buf except extra allocated bytes.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
audio channel layout utility functions
static int adp_probe(AVProbeData *p)
enum AVMediaType codec_type
int sample_rate
samples per second
AVIOContext * pb
I/O context.
This structure contains the data a format has to probe a file.
int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
Return audio frame duration.
int64_t duration
Decoding: duration of the stream, in stream time base.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...
int channels
number of audio channels
int avio_feof(AVIOContext *s)
feof() equivalent for AVIOContext.
This structure stores compressed data.