Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE

This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

audiotoolboxdec.c fails to compile on OS X 10.5

Troubleshooting compilation problems on all platforms.

audiotoolboxdec.c fails to compile on OS X 10.5

Postby David Hillman » Wed Aug 31, 2016 2:46 am

Does anyone happen to know how to get audiotoolboxdec.c to compile on OS X 10.5.8 with gcc (4.0.1)? Or if there's an older release that I can download which will build on this OS? Or another option?

I just downloaded ffmpeg 3.1.3 today, and attempted to compile it. All went well until it reached...

Code: Select all
...snipped for brevity...
CC   libavcodec/assenc.o
CC   libavcodec/asv.o
CC   libavcodec/asvdec.o
CC   libavcodec/asvenc.o
CC   libavcodec/atrac.o
CC   libavcodec/atrac1.o
CC   libavcodec/atrac3.o
CC   libavcodec/atrac3plus.o
CC   libavcodec/atrac3plusdec.o
CC   libavcodec/atrac3plusdsp.o
CC   libavcodec/audio_frame_queue.o
CC   libavcodec/audioconvert.o
CC   libavcodec/audiodsp.o
CC   libavcodec/audiotoolboxdec.o
libavcodec/audiotoolboxdec.c: In function ‘ffat_get_format_id’:
libavcodec/audiotoolboxdec.c:73: error: ‘kAudioFormatMicrosoftGSM’ undeclared (first use in this function)
libavcodec/audiotoolboxdec.c:73: error: (Each undeclared identifier is reported only once
libavcodec/audiotoolboxdec.c:73: error: for each function it appears in.)
libavcodec/audiotoolboxdec.c:75: error: ‘kAudioFormatiLBC’ undeclared (first use in this function)
libavcodec/audiotoolboxdec.c: In function ‘ffat_create_decoder’:
libavcodec/audiotoolboxdec.c:345: warning: passing argument 3 of ‘ff_mpa_decode_header’ from incompatible pointer type
libavcodec/audiotoolboxdec.c: In function ‘ffat_decode’:
libavcodec/audiotoolboxdec.c:550: warning: passing argument 4 of ‘AudioConverterFillComplexBuffer’ from incompatible pointer type
libavcodec/audiotoolboxdec.c:561: warning: format ‘%i’ expects type ‘int’, but argument 4 has type ‘OSStatus’
make: *** [libavcodec/audiotoolboxdec.o] Error 1

I searched for 'audiotoolboxdec' here, but came up empty. Please advise, thanks.

PS The 'Upload attachment' feature here is broken. Regardless of the filename, it says "extension not allowed", even if you don't use an extension at all.
David Hillman
Posts: 1
Joined: Tue Aug 30, 2016 10:10 pm

Re: audiotoolboxdec.c fails to compile on OS X 10.5

Postby frosen » Thu Feb 16, 2017 9:19 am

Hello David,

Create a new file libavcodec/osxcompat.h with the following contents:

Code: Select all
#ifndef kAudioFormatMicrosoftGSM
#define kAudioFormatMicrosoftGSM 0x6D730031

#ifndef kAudioFormatiLBC
#define kAudioFormatiLBC 'ilbc'

#ifndef kAudioFormatMPEG4AAC_ELD
#define kAudioFormatMPEG4AAC_ELD 'aace'

Then, at the beginning of the two files
libavcodec/audiotoolboxdec.c and

include this file using

Code: Select all
#include "osxcompat.h"
Posts: 1
Joined: Thu Feb 16, 2017 9:14 am

Return to Compiling FFmpeg

Who is online

Users browsing this forum: No registered users and 1 guest