22 #include "libavutil/intreadwrite.h"
30 int max_frames = 0, first_frames = 0;
38 for(; buf <
end; buf= buf2+1) {
41 for(frames = 0; buf2 <
end; frames++) {
42 uint32_t header =
AV_RB24(buf2);
43 if((header >> 13) != 0x2B7)
45 fsize = (header & 0x1FFF) + 3;
48 fsize =
FFMIN(fsize, end - buf2);
51 max_frames =
FFMAX(max_frames, frames);
static int loas_read_header(AVFormatContext *s)
AVCodecContext * codec
Codec context associated with this stream.
static av_cold int end(AVCodecContext *avctx)
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
enum AVStreamParseType need_parsing
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
struct AVInputFormat * iformat
Can only be iformat or oformat, not both at the same time.
int buf_size
Size of buf except extra allocated bytes.
common internal API header
enum AVMediaType codec_type
static int loas_probe(AVProbeData *p)
This structure contains the data a format has to probe a file.
AVInputFormat ff_loas_demuxer