Can we change mjpeg_probe() then? It has the same problem.
"Everything was valid, and there's more than two frames, but it still has lower
score than extension-based guess"
libavformat/rawdec.c:184
if (nb_invalid == 0 && nb_frames > 2)
return AVPROBE_SCORE_EXTENSION / 2;
Vadim
2017-05-08 22:25 GMT+02:00 Vadim Kalinsky :
> Shouldn't it be something like this?
No, it tries not to beat the mjpeg probe.
Carl Eugen
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
On Mon, 8 May 2017 16:25:43 -0400
Vadim Kalinsky wrote:
> Hey,
>
> Trying to fix a bug #6113, I stumbled upon some strange logic in
> libavformat/img2dec.c:jpeg_probe. It accepts first 2048 bytes of jpeg stream,
> and tries to read it with some state machine. If it doesn't look like jpeg
> st
Hey,
Trying to fix a bug #6113, I stumbled upon some strange logic in
libavformat/img2dec.c:jpeg_probe. It accepts first 2048 bytes of jpeg stream,
and tries to read it with some state machine. If it doesn't look like jpeg
stream, it returns 0 ("it's definitely not a jpeg").
After it read thro