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
1818 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1919 */
2020
21+#include "config.h"
22+
23+#include <stddef.h>
24+
2125 #include "libavutil/mem.h"
2226
27+#if CONFIG_QSV
2328 #include "qsv.h"
2429
2530 AVQSVContext *av_qsv_alloc_context(void)
2631 {
2732 return av_mallocz(sizeof(AVQSVContext));
2833 }
34+#else
35+
36+struct AVQSVContext *av_qsv_alloc_context(void);
37+
38+struct 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