fix(media-proxy): serve originals and speed up slow transforms (#3393)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-11 14:41:01 +02:00
1 parent 44bc29b101
commit aa3b058ce6
29 files changed
+632 -83

No files matched your search

@@ -193,7 +193,7 @@ int fluxer_read_gif_frame_delays(const uint8_t *bytes, size_t len,
block_count++;
uint8_t introducer = bytes[offset++];
if (introducer == 0x3b) {
if (offset != len || has_pending_delay || frame_count != expected_frames) {
if (has_pending_delay || frame_count != expected_frames) {
return FLUXER_NATIVE_STATUS_CODEC_FAILURE;
}
if (out_loop_count != NULL) *out_loop_count = loop_count;
@@ -148,7 +148,7 @@ int fluxer_validate_complete_gif(const uint8_t *bytes, size_t len,
context.block_count++;
uint8_t introducer = context.bytes[context.offset++];
if (introducer == 0x3b) {
if (context.image_count == 0 || context.offset != context.len ||
if (context.image_count == 0 ||
context.image_count > (size_t)INT_MAX) {
return FLUXER_NATIVE_STATUS_CODEC_FAILURE;
}