27#define SUP_PGS_MAGIC 0x5047
31 const uint8_t *
data =
pkt->data;
33 uint32_t
pts = 0, dts = 0;
85 .p.extensions =
"sup",
86 .p.mime_type =
"application/x-pgs",
void avio_wb32(AVIOContext *s, unsigned int val)
void avio_wb16(AVIOContext *s, unsigned int val)
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
@ AV_CODEC_ID_HDMV_PGS_SUBTITLE
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define AV_NOPTS_VALUE
Undefined timestamp value.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
This structure stores compressed data.
static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
static av_cold int sup_init(AVFormatContext *s)