<div dir="ltr">After a long time I've decided to rebuild my application. So I've compiled latest ffmpeg and installed. But now when I try to rebuild my application against latest ffmpeg, I got the following build errors.<div><br></div><div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:156:33: error: ‘avcodec_alloc_frame’ was not declared in this scope</font></div><div><font face="monospace, monospace" color="#666666">     frame = avcodec_alloc_frame();</font></div><div><font face="monospace, monospace" color="#666666">                                 ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:219:13: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4040) [-Wdeprecated-declarations]</font></div><div><font face="monospace, monospace" color="#666666">             av_free_packet(&pkt);</font></div><div><font face="monospace, monospace" color="#666666">             ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:219:32: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4040) [-Wdeprecated-declarations]</font></div><div><font face="monospace, monospace" color="#666666">             av_free_packet(&pkt);</font></div><div><font face="monospace, monospace" color="#666666">                                ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:233:13: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4040) [-Wdeprecated-declarations]</font></div><div><font face="monospace, monospace" color="#666666">             av_free_packet(&pkt);</font></div><div><font face="monospace, monospace" color="#666666">             ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:233:32: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4040) [-Wdeprecated-declarations]</font></div><div><font face="monospace, monospace" color="#666666">             av_free_packet(&pkt);</font></div><div><font face="monospace, monospace" color="#666666">                                ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:238:30: error: ‘avcodec_free_frame’ was not declared in this scope</font></div><div><font face="monospace, monospace" color="#666666">     avcodec_free_frame(&frame);</font></div><div><font face="monospace, monospace" color="#666666">                              ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp: In function ‘void audio_decode_example(const char*, const char*)’:</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:288:55: error: ‘avcodec_alloc_frame’ was not declared in this scope</font></div><div><font face="monospace, monospace" color="#666666">             if (!(decoded_frame = avcodec_alloc_frame())) {</font></div><div><font face="monospace, monospace" color="#666666">                                                       ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:293:53: error: ‘avcodec_get_frame_defaults’ was not declared in this scope</font></div><div><font face="monospace, monospace" color="#666666">             avcodec_get_frame_defaults(decoded_frame);</font></div><div><font face="monospace, monospace" color="#666666">                                                     ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:327:38: error: ‘avcodec_free_frame’ was not declared in this scope</font></div><div><font face="monospace, monospace" color="#666666">     avcodec_free_frame(&decoded_frame);</font></div><div><font face="monospace, monospace" color="#666666">                                      ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp: In function ‘void video_encode_example(const char*, int)’:</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:375:33: error: ‘avcodec_alloc_frame’ was not declared in this scope</font></div><div><font face="monospace, monospace" color="#666666">     frame = avcodec_alloc_frame();</font></div><div><font face="monospace, monospace" color="#666666">                                 ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:420:13: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4040) [-Wdeprecated-declarations]</font></div><div><font face="monospace, monospace" color="#666666">             av_free_packet(&pkt);</font></div><div><font face="monospace, monospace" color="#666666">             ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:420:32: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4040) [-Wdeprecated-declarations]</font></div><div><font face="monospace, monospace" color="#666666">             av_free_packet(&pkt);</font></div><div><font face="monospace, monospace" color="#666666">                                ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:434:13: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4040) [-Wdeprecated-declarations]</font></div><div><font face="monospace, monospace" color="#666666">             av_free_packet(&pkt);</font></div><div><font face="monospace, monospace" color="#666666">             ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:434:32: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4040) [-Wdeprecated-declarations]</font></div><div><font face="monospace, monospace" color="#666666">             av_free_packet(&pkt);</font></div><div><font face="monospace, monospace" color="#666666">                                ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:443:30: error: ‘avcodec_free_frame’ was not declared in this scope</font></div><div><font face="monospace, monospace" color="#666666">     avcodec_free_frame(&frame);</font></div><div><font face="monospace, monospace" color="#666666">                              ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp: In function ‘void video_decode_example(const char*, const char*)’:</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:524:33: error: ‘avcodec_alloc_frame’ was not declared in this scope</font></div><div><font face="monospace, monospace" color="#666666">     frame = avcodec_alloc_frame();</font></div><div><font face="monospace, monospace" color="#666666">                                 ^</font></div><div><font face="monospace, monospace" color="#666666">libavcodec_util.cpp:560:30: error: ‘avcodec_free_frame’ was not declared in this scope</font></div><div><font face="monospace, monospace" color="#666666">     avcodec_free_frame(&frame);</font></div><div><font face="monospace, monospace" color="#666666"> </font></div></div><div><font face="monospace, monospace" color="#666666"><br></font></div><div><font color="#000000" face="arial, helvetica, sans-serif">Apparently libavcodec API got updated. What is the alternative implementation for the above errors?</font></div><div><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div><font color="#000000" face="arial, helvetica, sans-serif">--</font></div><div><font color="#000000" face="arial, helvetica, sans-serif">Gowtham</font></div></div>