34 #define FILM_TAG MKBETAG('F', 'I', 'L', 'M') 35 #define FDSC_TAG MKBETAG('F', 'D', 'S', 'C') 36 #define STAB_TAG MKBETAG('S', 'T', 'A', 'B') 37 #define CVID_TAG MKBETAG('c', 'v', 'i', 'd') 38 #define RAW_TAG MKBETAG('r', 'a', 'w', ' ') 88 unsigned char scratch[256];
90 unsigned int data_offset;
91 unsigned int audio_frame_counter;
92 unsigned int video_frame_counter;
99 data_offset =
AV_RB32(&scratch[4]);
124 if (scratch[23] == 2)
161 if (scratch[20] == 24) {
216 audio_frame_counter = video_frame_counter = 0;
224 data_offset +
AV_RB32(&scratch[0]);
230 if (
AV_RB32(&scratch[8]) == 0xFFFFFFFF) {
244 video_frame_counter++;
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int av_add_index_entry(AVStream *st, int64_t pos, int64_t timestamp, int size, int distance, int flags)
Add an index entry into a sorted list.
packed RGB 8:8:8, 24bpp, RGBRGB...
static int film_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int index
stream index in AVFormatContext
unsigned int sample_count
av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (%s)\, len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt), use_generic ? ac->func_descr_generic :ac->func_descr)
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
AVIndexEntry * index_entries
Only used if the format does not support seeking natively.
static int film_read_close(AVFormatContext *s)
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
unsigned int audio_channels
enum AVStreamParseType need_parsing
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
AVStream ** streams
A list of all streams in the file.
static av_cold int read_close(AVFormatContext *ctx)
unsigned int audio_samplerate
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
AVCodecID
Identify the syntax and semantics of the bitstream.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags)
Get the index for a specific timestamp.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
enum AVMediaType codec_type
General type of the encoded data.
unsigned int current_sample
int bit_rate
The average bitrate of the encoded data (in bits per second).
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
unsigned int nb_streams
Number of elements in AVFormatContext.streams.
int block_align
Audio only.
film_sample * sample_table
enum AVCodecID video_type
static int film_read_header(AVFormatContext *s)
static int read_header(FFV1Context *f)
AVIOContext * pb
I/O context.
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
static int film_probe(AVProbeData *p)
This structure contains the data a format has to probe a file.
AVInputFormat ff_segafilm_demuxer
int64_t duration
Decoding: duration of the stream, in stream time base.
int sample_rate
Audio only.
static int film_read_packet(AVFormatContext *s, AVPacket *pkt)
void * priv_data
Format private data.
int bits_per_coded_sample
enum AVCodecID audio_type
AVCodecParameters * codecpar
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...