27 #define ASF_TAG MKTAG('A', 'S', 'F', '\0') 28 #define ASF_FILE_HEADER_SIZE 24 29 #define ASF_CHUNK_HEADER_SIZE 20 AVInputFormat ff_argo_asf_demuxer
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
static void argo_asf_parse_chunk_header(ArgoASFChunkHeader *hdr, const uint8_t *buf)
#define avpriv_request_sample(...)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int index
stream index in AVFormatContext
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
#define AV_CH_LAYOUT_STEREO
static int argo_asf_is_known_version(const ArgoASFFileHeader *hdr)
int frame_size
Audio only.
#define av_assert0(cond)
assert() equivalent, that is always enabled.
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
static int argo_asf_probe(const AVProbeData *p)
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.
#define AVERROR_EOF
End of file.
static int argo_asf_read_header(AVFormatContext *s)
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)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
#define ASF_CHUNK_HEADER_SIZE
enum AVMediaType codec_type
General type of the encoded data.
static void argo_asf_parse_file_header(ArgoASFFileHeader *hdr, const uint8_t *buf)
simple assert() macros that are a bit more flexible than ISO C assert().
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
int block_align
Audio only.
static int argo_asf_read_packet(AVFormatContext *s, AVPacket *pkt)
#define FF_ARRAY_ELEMS(a)
static int read_header(FFV1Context *f)
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
AVIOContext * pb
I/O context.
#define ASF_FILE_HEADER_SIZE
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.
int64_t duration
Decoding: duration of the stream, in stream time base.
int sample_rate
Audio only.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...
int64_t nb_frames
number of frames in this stream if known or 0
void * priv_data
Format private data.
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.