[FFmpeg-trac] #4216(avutil:new): #define PixelFormat AVPixelFormat breaks user code

FFmpeg trac at avcodec.org
Wed Dec 31 12:44:29 CET 2014


#4216: #define PixelFormat AVPixelFormat breaks user code
--------------------------------------+----------------------------------
             Reporter:  kivalaatikko  |                    Owner:
                 Type:  defect        |                   Status:  new
             Priority:  normal        |                Component:  avutil
              Version:  2.5.2         |               Resolution:
             Keywords:  PixelFormat   |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+----------------------------------

Comment (by gjdfgh):

 If it were a typedef, it would break C code which uses "enum PixelFormat".

 But yeah, all exported identifiers are supposed to be prefixed with AV,
 av_, or FF_, and this is just a compatibility hack for older software
 still using the old identifiers. Maybe it's time to drop them?

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4216#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list