mardi 27 novembre 2018

Using ffmpeg library with Qt framework results in error

When I include:

extern "C" {
#include <libavcodec/avcodec.h>
}

I am getting the error:

undefined reference to QVideoSurfaceFormat::QVideoSurfaceFormat(QSize const&, QVideoFrame::AVPixelFormat, QAbstractVideoBuffer::HandleType)

without the include - build success.

My guess that include brings some defines that breaks QVideoSurfaceFormat defenition.
Have someone faced with the similar issue?

Aucun commentaire:

Enregistrer un commentaire