25 #define CDG_PACKET_SIZE 24
26 #define CDG_COMMAND 0x09
int64_t avio_size(AVIOContext *s)
Get the filesize.
void av_free_packet(AVPacket *pkt)
Free a packet.
#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.
AVInputFormat ff_cdg_demuxer
enum AVMediaType codec_type
AVIOContext * pb
I/O context.
int64_t duration
Decoding: duration of the stream, in stream time base.
static int read_header(AVFormatContext *s)
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
static int read_packet(AVFormatContext *s, AVPacket *pkt)
This structure stores compressed data.