[FFmpeg-devel] [PATCH] Fix videotoolbox compile error on OS X 10.8.

Dan Dennedy dan at dennedy.org
Tue Jun 21 06:45:13 CEST 2016

On Sun, Jun 19, 2016 at 9:25 PM Richard Kern <kernrj at gmail.com> wrote:

> > On Jun 19, 2016, at 6:11 PM, Dan Dennedy <dan at dennedy.org> wrote:
> >
> > Fixes error:
> > libavcodec/videotoolbox.c:511:18: error: implicit declaration of
> > function 'CMVideoFormatDescriptionCreateFromH264ParameterSets' is
> > invalid in C99
> >
> > This was added in 10.9:
> >
> https://developer.apple.com/reference/coremedia/1489818-cmvideoformatdescriptioncreatefr?language=objc
> Thanks for catching this - applied.
> If you have access to OS X 10.8, can you test using this hwaccel?
My nightly build agent for my app is a hackintosh running 10.8, but I do
not believe it has the hardware or driver to support vda or videotoolbox to
test this on that machine. When I use ffmpeg -hwaccel with vda or
videotoolbox, it fails to initialize. I can, however, successfully use a
build made on it on another, real mac running a very recent OS X - probably
not what you are interested in. I wanted to fix the compile error instead
of disabling videotoolbox altogether in the build script.

More information about the ffmpeg-devel mailing list