[FFmpeg-trac] #2578(avcodec:new): avcodec_find_best_pix_fmt_of_list gives wrong format

FFmpeg trac at avcodec.org
Tue May 21 08:09:42 CEST 2013


#2578: avcodec_find_best_pix_fmt_of_list gives wrong format
------------------------------------+-----------------------------------
             Reporter:  str         |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------

Comment (by str):

 AVPixelFormat list[] = {PIX_FMT_PAL8, PIX_FMT_GRAY8};
   AVPixelFormat src = PIX_FMT_GRAY8;

   AVPixelFormat res = avcodec_find_best_pix_fmt_of_list(list, src, 0, 0);
 //res is PIX_FMT_PAL8 instead of PIX_FMT_GRAY8

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


More information about the FFmpeg-trac mailing list