Hi I tried to compile avcodec_sample.0.5.0.c found in
http://web.me.com/dhoerl/Home/Tech_Blog/Entries/2009/1/22_Revised_avcodec_sample.c.html I could do it on a previous build of ffmpeg using the following command gcc -o avcodec_sample.0.5.0 avcodec_sample.0.5.0.c -lavformat -lavcodec -lavutil -lswscale -lz -lbz2 -lm When I tried on the latest build of ffmpeg I get the following error In file included from /usr/local/include/libavutil/avutil.h:81, from /usr/local/include/libavcodec/avcodec.h:30, from avcodec_sample.0.5.0.c:25: /usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’: /usr/local/include/libavutil/common.h:154: error: ‘UINT64_C’ was not declared in this scope avcodec_sample.0.5.0.c: In function ‘int main(int, const char**)’: avcodec_sample.0.5.0.c:111: error: invalid conversion from ‘void*’ to ‘uint8_t*’ avcodec_sample.0.5.0.c:125: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3475) avcodec_sample.0.5.0.c:126: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3475) Please advice what is wrong here. Thanks! _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
