[Libav-user] ‘avcodec_alloc_frame’ was not declared in this scope
Satya Gowtham Kudupudi
satyagowtham.k at icloud.com
Sun Feb 14 18:44:04 CET 2016
> On 14-Feb-2016, at 3:30 AM, Gonzalo <ggarra13 at gmail.com> wrote:
>
>
>
> 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.
>
av_frame_unref(&frame)
> --
> Gonzalo Garramuño
> ggarra13 at gmail.com <mailto:ggarra13 at gmail.com>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
Thank you!
—
Gowtham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160214/bfe85a4d/attachment.html>
More information about the Libav-user
mailing list