Fixes: OOM Fixes: 59802/clusterfuzz-testcase-minimized-ffmpeg_dem_JPEGXL_ANIM_fuzzer-5681765466112000
Showing the changes to libavformat (1 of 1 file). Show all
Unified · Split
| @@ -231,7 +231,7 @@ static int jpegxl_anim_read_packet(AVFormatContext *s, AVPacket *pkt) · 230 unmodified lines | ||
| 231 | 231 | if (ctx->initial && size < ctx->initial->size) |
| 232 | 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 | 235 | return ret; |
| 236 | 236 | |
| 237 | 237 | if (ctx->initial) { |