Re: [FFmpeg-devel] img2dec: jpeg_probe logic

2017-09-14 Thread Vadim Kalinsky
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

[FFmpeg-devel] img2dec: jpeg_probe logic

2017-05-09 Thread Vadim Kalinsky
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

Re: [FFmpeg-devel] bprint.h can't be included in C++ code

2014-11-24 Thread Vadim Kalinsky
ated memory */ unsigned size_max; /**< maximum allocated memory */ char reserved_internal_buffer[1024]; }; Vadim Kalinsky kalinsky.ru ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] bprint.h can't be included in C++ code

2014-11-23 Thread Vadim Kalinsky
ated with modern PLs, but I don't see huge difference in readability between the old and the new versions. Both are terrible :-) 0001-Squashed.patch Description: Binary data Vadim Kalinsky kalinsky.ru signature.asc Description: Message signed w

[FFmpeg-devel] bprint.h can't be included in C++ code

2014-11-21 Thread Vadim Kalinsky
C++ does not support anonymous struct. 0001-C-compatible-AVBPrint-definition.patch Description: Binary data Vadim Kalinsky kalinsky.ru signature.asc Description: Message signed with OpenPGP using GPGMail ___ ffmpeg-devel mailing list