[FFmpeg-trac] #52(FFmpeg:reopened): mjpeg decoder is broken (at least with ga61bc91)

FFmpeg trac at avcodec.org
Tue Apr 19 23:39:28 CEST 2011


#52: mjpeg decoder is broken (at least with ga61bc91)
------------------------+-----------------------
Reporter:  ami_stuff    |       Owner:  michael
    Type:  defect       |      Status:  reopened
Priority:  normal       |   Component:  FFmpeg
 Version:  unspecified  |  Resolution:
Keywords:               |  Blocked By:
Blocking:               |  Reproduced:  0
Analyzed:  0            |
------------------------+-----------------------

Comment (by tateu):

 Ok, I think I found the problem.  With --enable-runtime-cpudetect,
 sws_rgb2rgb_init from rgb2rgb.c was getting called with the incorrect
 flags and triggering rgb2rgb_init_C even though ff_getSwsFunc from
 swscale.c was getting called with the correct flags and triggering
 sws_init_swScale_MMX2().

 I have attached a patch (libswscale_enable_cpu_runtime.diff) that fixes
 the problem for me.  Basically, I moved (and modified, slightly by adding
 SSE2) the code from commit 30c6fefd013a579f455c230ca9b9b0f8fc68285a
 (swscale.c) to update_flags_cpu in utils.c.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/52#comment:12>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list