if (!pb)
return 0;
- ret = (parse_multipart_header(pb, &size, "--", NULL) > 0) ? AVPROBE_SCORE_MAX : 0;
+ ret = (parse_multipart_header(pb, &size, "--", NULL) >= 0) ? AVPROBE_SCORE_MAX : 0;
av_free(pb);
if (log_ctx)
av_log(log_ctx,
AV_LOG_ERROR,
- "Expected boundary '%s' not found, instead found a line of %zu bytes\n",
+ "Expected boundary '%s' not found, instead found a line of %"SIZE_SPECIFIER" bytes\n",
expected_boundary,
strlen(line));
.read_header = mpjpeg_read_header,
.read_packet = mpjpeg_read_packet,
.read_close = mpjpeg_read_close,
- .priv_class = &mpjpeg_demuxer_class
+ .priv_class = &mpjpeg_demuxer_class,
+ .flags = AVFMT_NOTIMESTAMPS,
};