26 #define AUPR_HDR 0x415550522D484452
27 #define AUPRINFO 0x41555052494E464F
28 #define BITSHVTB 0x4249545348565442
29 #define BLACKOUT 0x424C41434B4F5554
30 #define BRANCHPT 0x4252414E43485054
31 #define BUILDVER 0x4255494C44564552
32 #define CORESSMD 0x434F524553534D44
33 #define DTSHDHDR 0x4454534844484452
34 #define EXTSS_MD 0x45585453535f4d44
35 #define FILEINFO 0x46494C45494E464F
36 #define NAVI_TBL 0x4E4156492D54424C
37 #define STRMDATA 0x5354524D44415441
38 #define TIMECODE 0x54494D45434F4445
55 uint64_t chunk_type, chunk_size;
75 if (chunk_size > ((uint64_t)1 << 61)) {
88 if (chunk_size > INT_MAX)
94 value[chunk_size - 1] = 0;
116 size =
FFMIN(left, 1024);
137 .extensions =
"dtshd",
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
AVInputFormat ff_dtshd_demuxer
enum AVStreamParseType need_parsing
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AVERROR_EOF
End of file.
uint64_t avio_rb64(AVIOContext *s)
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
AVDictionary * metadata
Metadata that applies to the whole file.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVCodecContext * codec
Codec context associated with this stream.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
#define AV_DICT_DONT_STRDUP_VAL
Take ownership of a value that's been allocated with av_malloc() or another memory allocation functio...
GLsizei GLboolean const GLfloat * value
static int dtshd_read_header(AVFormatContext *s)
static int read_header(FFV1Context *f)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
enum AVMediaType codec_type
static int raw_read_packet(AVFormatContext *s, AVPacket *pkt)
AVIOContext * pb
I/O context.
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
This structure contains the data a format has to probe a file.
static int dtshd_probe(AVProbeData *p)
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_RB64
void * priv_data
Format private data.
int avio_feof(AVIOContext *s)
feof() equivalent for AVIOContext.
This structure stores compressed data.