[FFmpeg-devel] [PATCH] lavc/mjpegdec: hint next marker position in ff_mjpeg_find_marker

Michael Niedermayer michaelni at gmx.at
Fri Jan 27 03:30:40 EET 2017


On Thu, Jan 26, 2017 at 05:47:51PM +0100, Matthieu Bouron wrote:
> Speeds up next marker search when a SOS marker is found.
> 
> ff_mjpeg_find_marker goes from 54% to 30% under perf record ffmpeg -i
> sample_2992x4000.jpg
> ---
>  libavcodec/mjpegdec.c | 31 +++++++++++++++++++++++++------
>  libavcodec/mjpegdec.h |  2 +-
>  libavcodec/mxpegdec.c |  5 +++--
>  3 files changed, 29 insertions(+), 9 deletions(-)

this breaks decoding multiple jpeg files
for example tickets//856/nint.jpg

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170127/9cad76d1/attachment.sig>


More information about the ffmpeg-devel mailing list