History

qsv_api: fix building with libmfx disabled

Anton Khirnov committed 11 years ago

Commit 0fbb2711 parent 11c22df1 file · +14 −0Browse files

Unified · Split

libavcodec/qsv_api.c+14−0
@@ -18,11 +18,25 @@ · 17 unmodified lines
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */19 */
20 20
21#include "config.h"
22
23#include <stddef.h>
24
21#include "libavutil/mem.h"25#include "libavutil/mem.h"
22 26
27#if CONFIG_QSV
23#include "qsv.h"28#include "qsv.h"
24 29
25AVQSVContext *av_qsv_alloc_context(void)30AVQSVContext *av_qsv_alloc_context(void)
26{31{
27 return av_mallocz(sizeof(AVQSVContext));32 return av_mallocz(sizeof(AVQSVContext));
28}33}
34#else
35
36struct AVQSVContext *av_qsv_alloc_context(void);
37
38struct AVQSVContext *av_qsv_alloc_context(void)
39{
40 return NULL;
41}
42#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t