[Libav-user] error avformat.h: avformat undeclared
curer57458 at mypacks.net
curer57458 at mypacks.net
Mon May 7 22:30:45 CEST 2012
> Where is AVFormat declared for the ffmpeg header file avformat.h found in /usr/include/libavformat/avformat.h?
Meant to say Where is AVPacket declared for the ffmpeg header file avformat.h.
> If your source is C++, you must include av headers like
> extern "C" {
> #include "avformat.h"
> }
The source files are CPP and H files. They are declared with extern this way for including avformat.h: extern "C" { ... #include <libavformat/avformat.h> ...}. Changing the < > to " " and running make clean, make does not change the undeclared AVPacket. There was a header file that had declared AVPacket /usr/include/libavcodec/avcodec.h, but including it did not solve the problem as it is still considered AVPacket undeclared. On reading the file avformat.h, it does not declare AVPacket. What header file or source file for ffmpeg declares this variable AVPacket?
Using c++-4.5 and gcc-4.5. Also tried gcc-3.3.
More information about the Libav-user
mailing list