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

Quy Pham Sy phamsyquybk at gmail.com
Tue May 10 12:15:47 CEST 2011


I figured it out, some of my accident modification caused it.


On Tue, May 10, 2011 at 6:42 PM, Quy Pham Sy <phamsyquybk at gmail.com> wrote:

> Hi,
>
> 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
> /usr/local/include/libswscale/swscale.h:194)
> 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
> /usr/local/include/libavformat/avio.h:424)
> output-example.c:548: warning: ‘url_fclose’ is deprecated (declared at
> /usr/local/include/libavformat/avio.h:425)
>
>
> can anyone help me with this?
>
> Thanks in advance,
> Quy
>


More information about the ffmpeg-user mailing list