22 #include "libavutil/intreadwrite.h"
37 unsigned size, nb_streams,
id;
56 case MKTAG(
'0',
'0',
'f',
'm'):
71 case MKTAG(
'0',
'1',
'f',
'm'):
104 int ret, is_video = 0;
111 if (size == 0xFFFFFFFFu)
115 case MKTAG(
'0',
'0',
'd',
'c'):
117 case MKTAG(
'0',
'1',
'w',
'b'):
123 if (flags & (1 << 12))
126 pkt->
pts = timestamp;
#define AVERROR_PATCHWELCOME
int64_t pos
byte position in stream, -1 if unknown
AVCodecContext * codec
Codec context associated with this stream.
void void avpriv_request_sample(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
static int lvf_read_header(AVFormatContext *s)
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
static int lvf_read_packet(AVFormatContext *s, AVPacket *pkt)
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
const AVCodecTag ff_codec_wav_tags[]
int flags
A combination of AV_PKT_FLAG values.
static int lvf_probe(AVProbeData *p)
const AVCodecTag ff_codec_bmp_tags[]
int width
picture width / height.
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
AVInputFormat ff_lvf_demuxer
enum AVMediaType codec_type
int sample_rate
samples per second
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
AVIOContext * pb
I/O context.
#define MKTAG(a, b, c, d)
This structure contains the data a format has to probe a file.
#define AVERROR_INVALIDDATA
int channels
number of audio channels
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...