[Libav-user] error avformat.h: avformat undeclared
curer57458 at mypacks.net
curer57458 at mypacks.net
Mon May 7 23:05:11 CEST 2012
>Meant to say Where is AVPacket declared for the ffmpeg header file avformat.h.
>
Did find that avformat.h includes libavcodec/avcodec.h, so not necessary to include it separately. It looks like part of the compile error could be from a different header file tree being used first, as there are a few different ffmpeg builds. The correct header file should be /usr/include/libavcodec.h, and the other file(s) should not be included. Solving this include directory path error should solve the original problem.
> avcodec.h, but including it did not solve the problem as it is still considered AVPacket undeclared.
This seems to be from a different avcodec.h being included from another ffmpeg branch. Will try to sort this out.
More information about the Libav-user
mailing list