25 #define CDG_PACKET_SIZE 24
26 #define CDG_COMMAND 0x09
78 if(ret>5 && (pkt->
data[0]&0x3F) == 9 && (pkt->
data[1]&0x3F)==1 && !(pkt->
data[2+2+1] & 0x0F)){
int64_t avio_size(AVIOContext *s)
Get the filesize.
void av_free_packet(AVPacket *pkt)
Free a packet.
#define AV_LOG_WARNING
Something somehow does not look correct.
int64_t pos
byte position in stream, -1 if unknown
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int flags
A combination of AV_PKT_FLAG values.
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)
void * priv_data
Format private data.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
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.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...