[FFmpeg-user] output_example.c compile error on Mac OSX

Quy Pham Sy phamsyquybk at gmail.com
Tue May 10 11:42:41 CEST 2011


I try to compile output_example.c on mac osx, and i got the error ouput:

gcc -o output-example.o output-example.c -I/usr/local/include
In file included from /usr/include/machine/_types.h:34,
                 from /usr/include/sys/_types.h:33,
                 from /usr/include/_types.h:27,
                 from /usr/include/stdlib.h:63,
                 from output-example.c:25:
/usr/include/i386/_types.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘typedef’
output-example.c: In function ‘write_video_frame’:
output-example.c:347: warning: ‘sws_getContext’ is deprecated (declared at
output-example.c:359: warning: passing argument 2 of ‘sws_scale’ from
incompatible pointer type
output-example.c: In function ‘main’:
output-example.c:495: warning: ‘url_fopen’ is deprecated (declared at
output-example.c:548: warning: ‘url_fclose’ is deprecated (declared at

can anyone help me with this?

Thanks in advance,

More information about the ffmpeg-user mailing list