[FFmpeg-trac] #829(avcodec:open): jpg: bad quality with progressive rgb file

FFmpeg trac at avcodec.org
Tue Dec 27 18:50:29 CET 2011


#829: jpg: bad quality with progressive rgb file
--------------------------------------+-----------------------------------
             Reporter:  ami_stuff     |                    Owner:
                 Type:  defect        |                   Status:  open
             Priority:  normal        |                Component:  avcodec
              Version:  git-master    |               Resolution:
             Keywords:  mjpeg gbr24p  |               Blocked By:
             Blocking:                |  Reproduced by developer:  1
Analyzed by developer:  0             |
--------------------------------------+-----------------------------------

Comment (by cehoyos):

 This is related to
 {{{
         if(nb_components == 3 && s->nb_components == 3 &&
 s->avctx->pix_fmt == PIX_FMT_GBR24P)
             index = (i+2)%3;
 }}}
 in libavcodec/mjpegdec.c, removing this hunk produces output files (with
 incorrect colours but) without artefacts.

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


More information about the FFmpeg-trac mailing list