28 #define MVI_FRAC_BITS 10
30 #define MVI_AUDIO_STREAM_INDEX 0
31 #define MVI_VIDEO_STREAM_INDEX 1
46 unsigned int version, frames_count, msecs_per_frame, player_version;
76 if (frames_count == 0 || audio_data_size <= 0)
79 if (
version != 7 || player_version > 213) {
102 "Invalid audio_data_size (%d) or frames_count (%u)\n",
103 audio_data_size, frames_count);
130 if ((int64_t)count << MVI_FRAC_BITS > INT_MAX)
unsigned int avio_rl16(AVIOContext *s)
unsigned int avio_rl32(AVIOContext *s)
unsigned int avio_rl24(AVIOContext *s)
int avio_r8(AVIOContext *s)
audio channel layout utility functions
#define AV_CH_LAYOUT_MONO
@ AV_CODEC_ID_MOTIONPIXELS
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static av_always_inline AVRational av_inv_q(AVRational q)
Invert a rational.
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
AVInputFormat ff_mvi_demuxer
#define MVI_VIDEO_STREAM_INDEX
static int read_packet(AVFormatContext *s, AVPacket *pkt)
#define MVI_AUDIO_STREAM_INDEX
static int read_header(AVFormatContext *s)
uint64_t channel_layout
Audio only.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
enum AVMediaType codec_type
General type of the encoded data.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
Audio only.
This structure stores compressed data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
AVRational avg_frame_rate
Average framerate.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.
uint64_t audio_frame_size
unsigned int(* get_int)(AVIOContext *)
uint64_t audio_size_counter