31 if (p->buf_size < 0x2080)
34 if (memcmp(p->buf,
"luo ", 4))
37 if (memcmp(p->buf + 0x1ffc,
" oulliu ", 8))
43 if (memcmp(p->buf + 0x207c,
" uil", 4))
85 for (stream_index = 0; stream_index <
s->nb_streams; stream_index++) {
86 if (
s->streams[stream_index]->id == stream_id)
90 if (stream_index ==
s->nb_streams) {
104 if (
index >=
s->nb_streams)
112 pkt->stream_index = stream_index;
122 .p.extensions =
"dat",
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.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
unsigned int avio_rl32(AVIOContext *s)
unsigned int avio_rb32(AVIOContext *s)
uint64_t avio_rl64(AVIOContext *s)
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
AVStream * avformat_new_stream(AVFormatContext *s, const struct 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.
#define AV_LOG_WARNING
Something somehow does not look correct.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int dat_probe(const AVProbeData *p)
static int dat_read_packet(AVFormatContext *s, AVPacket *pkt)
static int dat_read_header(AVFormatContext *s)
#define MKBETAG(a, b, c, d)
int height
The height of the video frame in pixels.
int width
The width of the video frame in pixels.
enum AVMediaType codec_type
General type of the encoded data.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
This structure stores compressed data.
This structure contains the data a format has to probe a file.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int id
Format-specific stream ID.