26#define CDG_PACKET_SIZE 24
27#define CDG_COMMAND 0x09
35 for (
int i = 0;
i < cnt;
i++) {
75 pkt->stream_index = 0;
79 if (!
pkt->pos || (ret > 5 &&
91 .p.extensions =
"cdg",
int64_t avio_size(AVIOContext *s)
Get the filesize.
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
#define i(width, name, range_min, range_max)
static int read_packet(AVFormatContext *s, AVPacket *pkt)
static int read_probe(const AVProbeData *p)
static int read_header(AVFormatContext *s)
#define CDG_PACKET_SIZE
data sizes
static int read_header(FFV1Context *f, RangeCoder *c)
#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 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.
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.
int64_t duration
Decoding: duration of the stream, in stream time base.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.