[Libav-user] VAAPI constraints - Failed to query surface attributes: 4 (invalid VAConfigID)

2017-02-07 Thread Anton Sviridenko
Hi I'm trying to use VAAPI accelerated decoding and this piece of code: { int err; const char *device; Q_ASSERT(m_instance == 0); #if defined(Q_WS_X11) QProcessEnvironment env; QByteArray x11display; env = QProcessEnvironment::systemEnvironment(); if (env.cont

Re: [Libav-user] VAAPI constraints - Failed to query surface attributes: 4 (invalid VAConfigID)

2017-02-07 Thread Mark Thompson
On 07/02/17 18:54, Anton Sviridenko wrote: > { > AVVAAPIHWConfig *hwconfig = NULL; > AVHWFramesConstraints *constraints = NULL; > > hwconfig = (AVVAAPIHWConfig > *)av_hwdevice_hwconfig_alloc(m_hw_device_ctx); > constraints = > av_hwdevice_get_hwframe_constraints