Fixes: Timeout (infinite)
Fixes: 16732/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TAK_fuzzer-5642166377906176
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
if (!avpkt.buf)
error("Failed memory allocation");
} else {
- ret = av_packet_make_refcounted(&avpkt);
- if (ret < 0)
+ if (av_packet_make_refcounted(&avpkt) < 0)
error("Failed memory allocation");
}
parsepkt.data += ret;