[FFmpeg-trac] #5289(undetermined:new): frame.h:171: error: redefinition of 'struct AVFrame'
FFmpeg
trac at avcodec.org
Fri Mar 4 23:30:48 CET 2016
#5289: frame.h:171: error: redefinition of 'struct AVFrame'
-------------------------------------+-------------------------------------
Reporter: lqsa00 | Owner:
Type: defect | Status: new
Priority: important | Component:
Version: unspecified | undetermined
Keywords: build | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by lqsa00):
I'm trying to use ffmpeg libraries on Android QT application. After
compile the libraries for Android, I've created a QT project containing
transcoding.c and linked against the compiled libraries.
I've must to define the INT64_C and declare extern C the includes:
#ifndef INT64_C
#define INT64_C(c) (c ## LL)
#define UINT64_C(c) (c ## ULL)
#endif
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavfilter/avfiltergraph.h>
#include <libavfilter/buffersink.h>
#include <libavfilter/buffersrc.h>
#include <libavutil/opt.h>
#include <libavutil/pixdesc.h>
}
When compile, appears some errors, and one of them is the AVFrame
duplication.
I've attached the compile output.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5289#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list