summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/mpjpegdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c
index c76ea560e7..d4b200e9c5 100644
--- a/libavformat/mpjpegdec.c
+++ b/libavformat/mpjpegdec.c
@@ -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;