32 int max_frames = 0, first_frames = 0;
41 for(; buf < end; buf= buf2+1) {
44 for(frames = 0; buf2 < end; frames++) {
45 uint32_t header =
AV_RB16(buf2);
46 if((header&0xFFF6) != 0xFFF0)
48 fsize = (
AV_RB32(buf2 + 3) >> 13) & 0x1FFF;
53 max_frames =
FFMAX(max_frames, frames);
60 else if(max_frames>=1)
return 1;
void ff_id3v1_read(AVFormatContext *s)
Read an ID3v1 tag.
enum AVStreamParseType need_parsing
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVStream * avformat_new_stream(AVFormatContext *s, AVCodec *c)
Add a new stream to a media file.
AVCodecContext * codec
Codec context associated with this stream.
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.
enum AVMediaType codec_type
This structure contains the data a format has to probe a file.
struct AVInputFormat * iformat
The input container format.