When compiling decklink, this header is included from a C++ file (albeit inside 'extern "C"') and this causes compilation failures because of an implicit void* -> char* conversion. So add an explicit cast. Fixes ticket #9819.
Unified · Split
| @@ -54,7 +54,7 @@ static inline int wchartocp(unsigned int code_page, const wchar_t *filename_w, · 53 unmodified lines | ||
| 54 | 54 | *filename = NULL; |
| 55 | 55 | return 0; |
| 56 | 56 | } |
| 57 | − *filename = av_malloc_array(num_chars, sizeof *filename); | |
| 57 | + *filename = (char*)av_malloc_array(num_chars, sizeof *filename); | |
| 58 | 58 | if (!*filename) { |
| 59 | 59 | errno = ENOMEM; |
| 60 | 60 | return -1; |