You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavf/mpjpegdec: Return 0 if an allocation inside the probe function fails.
This commit is contained in:
@@ -98,7 +98,7 @@ static int mpjpeg_read_probe(AVProbeData *p)
|
||||
|
||||
pb = avio_alloc_context(p->buf, p->buf_size, 0, NULL, NULL, NULL, NULL);
|
||||
if (!pb)
|
||||
return AVERROR(ENOMEM);
|
||||
return 0;
|
||||
|
||||
ret = (parse_multipart_header(pb, NULL)>0)?AVPROBE_SCORE_MAX:0;
|
||||
|
||||
|
Reference in New Issue
Block a user