23 #define SUP_PGS_MAGIC 0x5047 39 int64_t
pts, dts, pos;
73 unsigned char *
buf = p->
buf;
77 for (nb_packets = 0; nb_packets < 10; nb_packets++) {
78 size_t full_packet_size;
79 if (buf_size < 10 + 3)
83 full_packet_size =
AV_RB16(buf + 10 + 1) + 10 + 3;
84 if (buf_size < full_packet_size)
86 buf += full_packet_size;
87 buf_size -= full_packet_size;
104 .mime_type =
"application/x-pgs",
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int64_t pos
byte position in stream, -1 if unknown
AVInputFormat ff_sup_demuxer
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
unsigned int avio_rb16(AVIOContext *s)
static int sup_probe(AVProbeData *p)
static int sup_read_header(AVFormatContext *s)
unsigned int avio_rb32(AVIOContext *s)
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AVERROR_EOF
End of file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
#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. ...
enum AVMediaType codec_type
General type of the encoded data.
int flags
A combination of AV_PKT_FLAG values.
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.
AVIOContext * pb
I/O context.
This structure contains the data a format has to probe a file.
static int sup_read_packet(AVFormatContext *s, AVPacket *pkt)
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int avio_feof(AVIOContext *s)
feof() equivalent for AVIOContext.
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
#define AV_NOPTS_VALUE
Undefined timestamp value.