Fixes: OOM Fixes: 59802/clusterfuzz-testcase-minimized-ffmpeg_dem_JPEGXL_ANIM_fuzzer-5681765466112000
Unified · Split
| @@ -231,7 +231,7 @@ static int jpegxl_anim_read_packet(AVFormatContext *s, AVPacket *pkt) · 230 unmodified lines | |||
| 231 | if (ctx->initial && size < ctx->initial->size) | 231 | if (ctx->initial && size < ctx->initial->size) |
| 232 | size = ctx->initial->size; | 232 | size = ctx->initial->size; |
| 233 | 233 | ||
| 234 | if ((ret = av_new_packet(pkt, size) < 0)) | 234 | if ((ret = av_new_packet(pkt, size)) < 0) |
| 235 | return ret; | 235 | return ret; |
| 236 | 236 | ||
| 237 | if (ctx->initial) { | 237 | if (ctx->initial) { |