62 case MKTAG(
'0',
'0',
'f',
'm'):
77 case MKTAG(
'0',
'1',
'f',
'm'):
110 int ret, is_video = 0;
118 if (
size == 0xFFFFFFFFu)
122 case MKTAG(
'0',
'0',
'd',
'c'):
125 case MKTAG(
'0',
'1',
'w',
'b'):
128 stream_index = is_video ? 0 : 1;
129 if (stream_index >=
s->nb_streams)
134 if (
flags & (1 << 12))
136 pkt->stream_index = stream_index;
137 pkt->pts = timestamp;
154 .p.extensions =
"lvf",
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
int avio_feof(AVIOContext *s)
Similar to feof() but also returns nonzero on read errors.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
unsigned int avio_rl16(AVIOContext *s)
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
unsigned int avio_rl32(AVIOContext *s)
int avio_r8(AVIOContext *s)
#define flags(name, subs,...)
static unsigned int nb_streams
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AVERROR_EOF
End of file.
Macro definitions for various function/variable attributes.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int lvf_read_header(AVFormatContext *s)
static int lvf_read_packet(AVFormatContext *s, AVPacket *pkt)
static int lvf_probe(const AVProbeData *p)
#define MKTAG(a, b, c, d)
const AVCodecTag ff_codec_bmp_tags[]
const AVCodecTag ff_codec_wav_tags[]
internal header for RIFF based (de)muxers do NOT include this in end user applications
int nb_channels
Number of channels in this layout.
int height
The height of the video frame in pixels.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
AVChannelLayout ch_layout
The channel layout and number of channels.
int width
The width of the video frame in pixels.
enum AVMediaType codec_type
General type of the encoded data.
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
The number of audio samples per second.
This structure stores compressed data.
This structure contains the data a format has to probe a file.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
#define avpriv_request_sample(...)