#7944: compilation broken on macOS 10.12
---------------------------------+--------------------------------------
             Reporter:  criezy   |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  avcodec  |                  Version:  git-master
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+--------------------------------------
 Commit 98478c0 breaks compilation on macOS 10.12 as it uses
 {{{kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange}}} which was
 introduced in macOS 12.13.

 {{{
 libavcodec/videotoolboxenc.c:767:41: error: use of undeclared identifier
 'kCVPixelFormatType_420YpCbCr10BiPlanarFullRange'; did you mean
 'kCVPixelFormatType_420YpCbCr8BiPlanarFullRange'?
 kCVPixelFormatType_420YpCbCr10BiPlanarFullRange :
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
 /System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:77:3:
 note: 'kCVPixelFormatType_420YpCbCr8BiPlanarFullRange' declared here
   kCVPixelFormatType_420YpCbCr8BiPlanarFullRange  = '420f', /* Bi-Planar
 Component Y'CbCr 8-bit 4:2:0, full-range (luma=[0,255] chroma=[1,255]).
 baseAddr points to a big-endian CV...
   ^
 libavcodec/videotoolboxenc.c:768:41: error: use of undeclared identifier
 'kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange'; did you mean
 'kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange'?
 kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange;
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
 /System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:76:3:
 note: 'kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange' declared here
   kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = '420v', /* Bi-Planar
 Component Y'CbCr 8-bit 4:2:0, video-range (luma=[16,235] chroma=[16,240]).
 baseAddr points to a big-endia...
   ^
 libavcodec/videotoolboxenc.c:769:28: error: use of undeclared identifier
 'kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange'; did you mean
 'kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange'?
         *av_pixel_format =
 kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange;
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                            kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7944>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to