[Libav-user] ‘avcodec_alloc_frame’ was not declared in this scope

Gonzalo ggarra13 at gmail.com
Sat Feb 13 23:00:11 CET 2016



El 13/02/16 a las 16:58, satya gowtham kudupudi escribió:
> 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.
>
> libavcodec_util.cpp:156:33: error: ‘avcodec_alloc_frame’ was not 
> declared in this scope
>  frame = avcodec_alloc_frame();
av_frame_alloc()

>                          ^
> libavcodec_util.cpp:219:13: warning: ‘void av_free_packet(AVPacket*)’ 
> is deprecated (declared at 
> /usr/local/include/libavcodec/avcodec.h:4040) [-Wdeprecated-declarations]
>      av_free_packet(&pkt);
>      ^
av_packet_unref(&pkt);
>                         ^
> libavcodec_util.cpp:238:30: error: ‘avcodec_free_frame’ was not 
> declared in this scope
>  avcodec_free_frame(&frame);
av_frame_free(&frame);

>                       ^
>                                                ^
> libavcodec_util.cpp:293:53: error: ‘avcodec_get_frame_defaults’ was 
> not declared in this scope
>      avcodec_get_frame_defaults(decoded_frame);
>
Not sure, you'll need to check some old .h files for the deprecation 
warning.

-- 
Gonzalo Garramuño
ggarra13 at gmail.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160213/8eb4da84/attachment.html>


More information about the Libav-user mailing list