> On 11 Apr 2016, at 18:30, nablet developer <s...@nablet.com> wrote:
> 
> 
>>> 
>>> diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
>>> index 4c8e6b0..81d1f0c 100644
>>> --- a/libavcodec/qsv.c
>>> +++ b/libavcodec/qsv.c
>>> @@ -18,14 +18,19 @@
>>> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 
>>> USA
>>> */
>>> 
>>> -#include <mfx/mfxvideo.h>
>>> -#include <mfx/mfxplugin.h>
>>> -
>>> #include <stdio.h>
>>> #include <string.h>
>>> 
>>> #include "libavutil/avstring.h"
>>> #include "libavutil/error.h"
>>> +#include "libavutil/log.h"
>>> +
>>> +#include "qsv.h"
>>> +
>>> +#if CONFIG_QSV
>> 
>> conditional compilation belongs in the Makefile
> 
> 
> the idea here is to provide API functions for QuickSync 
> initialisation/de-initializtion stuff.
> as I understand, ffmpeg API functions must be always present, regardless if 
> QuickSync is available or not.
> if QuickSync is not available, then "dummy" functions are provides that do 
> nothing and just return an error.
> so, do I right understand that correct approach for it is providing two files 
> : one with actual implementation (qsv.c), and another with dummy 
> implementation (e.g. qsv_dummy.c), and select one of them in makefile?
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
ping. please recommend how to deal with that.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to