<p>On May 7, 2012 9:39 PM, <<a href="mailto:curer57458@mypacks.net">curer57458@mypacks.net</a>> wrote:<br>
><br>
> Hi libav user,<br>
><br>
> Where is AVFormat declared for the ffmpeg header file avformat.h found in /usr/include/libavformat/avformat.h?<br>
><br>
> libavutil 51. 34.101 / 51. 34.101<br>
> libavcodec 53. 60.100 / 53. 60.100<br>
> libavformat 53. 31.100 / 53. 31.100<br>
> libavdevice 53. 4.100 / 53. 4.100<br>
> libavfilter 2. 60.100 / 2. 60.100<br>
> libswscale 2. 1.100 / 2. 1.100<br>
> libswresample 0. 6.100 / 0. 6.100<br>
> libpostproc 52. 0.100 / 52. 0.100<br>
><br>
> The compilation error is from an application including the header file avformat.h:<br>
> error: ‘AVPacket’ was not declared in this scope<br>
><br>
> This error was also there with an older version of libavformat: 52 75 0.<br>
> A google search was not helpful in finding out where AVFormat is declared. Are there some CFLAGS that are needed to work with avformat.h, or what is missing? Also, the older version avformat.h 52 75 0 had the version defined in a MACRO and had a comment with swear words in it and "douchebag" while the newer version 53 31 100 did not.</p>
<p>If your source is C++, you must include av headers like</p>
<p>extern "C" {<br>
#include "avformat.h"<br>
}</p>
<p>BR,<br>
Alex Cohn<br>
</p>