22 #include "libavutil/channel_layout.h"
23 #include "libavutil/intreadwrite.h"
24 #include "libavutil/parseutils.h"
25 #include "libavutil/opt.h"
29 #define CDXL_HEADER_SIZE 32
62 if (p->
buf[18] || !p->
buf[19])
91 "Could not parse framerate: %s.\n", cdxl->
framerate);
108 uint32_t current_size,
video_size, image_size;
120 if (cdxl->
header[0] != 1) {
130 if (
FFALIGN(width, 16) * (uint64_t)height * cdxl->
header[19] > INT_MAX)
132 image_size =
FFALIGN(width, 16) * height * cdxl->
header[19] / 8;
133 video_size = palette_size + image_size;
135 if (palette_size > 512)
149 if (cdxl->
header[1] & 0x10) {
209 #define OFFSET(x) offsetof(CDXLDemuxContext, x)
230 .extensions =
"cdxl,xl",
232 .priv_class = &cdxl_demuxer_class,