93 int audio_size = c->
packet[1] * 65 + 1;
94 if (audio_size >= c->
size) {
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
static int bmv_read_close(AVFormatContext *s)
static int bmv_read_header(AVFormatContext *s)
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
#define AV_CH_LAYOUT_STEREO
8 bit with AV_PIX_FMT_RGB32 palette
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AVERROR_EOF
End of file.
static av_cold int read_close(AVFormatContext *ctx)
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
AVInputFormat ff_bmv_demuxer
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#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.
int avio_r8(AVIOContext *s)
AVCodecContext * codec
Codec context associated with this stream.
audio channel layout utility functions
int width
picture width / height.
static int read_header(FFV1Context *f)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
enum AVMediaType codec_type
int sample_rate
samples per second
AVIOContext * pb
I/O context.
int av_reallocp(void *ptr, size_t size)
Allocate or reallocate a block of memory.
int eof_reached
true if eof reached
int channels
number of audio channels
void * priv_data
Format private data.
unsigned int avio_rl24(AVIOContext *s)
This structure stores compressed data.
static int bmv_read_packet(AVFormatContext *s, AVPacket *pkt)
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...