27 #define MAGIC "Packed Animation File V1.0\n(c) 1992-96 Amazing Studio\x0a\x1a"
82 for (
i = 0;
i < count;
i++) {
152 p->
nb_frames > INT_MAX /
sizeof(uint32_t) ||
233 for (
i = 0;
i < count;
i++) {
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.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
unsigned int avio_rl32(AVIOContext *s)
audio channel layout utility functions
#define AV_CH_LAYOUT_STEREO
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
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 AVERROR_EOF
End of file.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int read_table(AVFormatContext *s, uint32_t *table, uint32_t count)
static int read_close(AVFormatContext *s)
static int read_packet(AVFormatContext *s, AVPacket *pkt)
static int read_probe(const AVProbeData *p)
AVInputFormat ff_paf_demuxer
static int read_header(AVFormatContext *s)
#define PAF_SOUND_FRAME_SIZE
#define PAF_SOUND_SAMPLES
static const uint16_t table[]
uint64_t channel_layout
Audio only.
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
Audio only.
This structure stores compressed data.
int flags
A combination of AV_PKT_FLAG values.
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
This structure contains the data a format has to probe a file.
int buf_size
Size of buf except extra allocated bytes.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int64_t nb_frames
number of frames in this stream if known or 0
int64_t duration
Decoding: duration of the stream, in stream time base.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base.
uint32_t * blocks_count_table
uint32_t current_frame_count
uint32_t current_frame_block
uint32_t * frames_offset_table
uint8_t * temp_audio_frame
uint32_t * blocks_offset_table
#define av_malloc_array(a, b)
static const uint8_t offset[127][2]