Unified · Split
| @@ -18,11 +18,25 @@ · 17 unmodified lines | |||
| 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 18 | * 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 | ||
| 25 | AVQSVContext *av_qsv_alloc_context(void) | 30 | AVQSVContext *av_qsv_alloc_context(void) |
| 26 | { | 31 | { |
| 27 | return av_mallocz(sizeof(AVQSVContext)); | 32 | return av_mallocz(sizeof(AVQSVContext)); |
| 28 | } | 33 | } |
| 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 | ||