Commit c52c78cc authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/mpjpegdec: Return 0 if an allocation inside the probe function fails.

parent 6debfce6
...@@ -98,7 +98,7 @@ static int mpjpeg_read_probe(AVProbeData *p) ...@@ -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); pb = avio_alloc_context(p->buf, p->buf_size, 0, NULL, NULL, NULL, NULL);
if (!pb) if (!pb)
return AVERROR(ENOMEM); return 0;
ret = (parse_multipart_header(pb, NULL)>0)?AVPROBE_SCORE_MAX:0; ret = (parse_multipart_header(pb, NULL)>0)?AVPROBE_SCORE_MAX:0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment