mirror of https://git.ffmpeg.org/ffmpeg.git
avdevice/decklink: Fix build error caused by a change in the SDK.
In version 10.4 of the DeckLink SDK, GetBufferedAudioSampleFrameCount() was changed to take an unsigned int instead of an unsigned long. Signed-off-by: Chris Spencer <spencercw@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
cdb0225fa9
commit
9c41126e1b
|
@ -19,6 +19,8 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <DeckLinkAPIVersion.h>
|
||||||
|
|
||||||
#include "decklink_common_c.h"
|
#include "decklink_common_c.h"
|
||||||
|
|
||||||
class decklink_output_callback;
|
class decklink_output_callback;
|
||||||
|
@ -82,7 +84,11 @@ struct decklink_ctx {
|
||||||
typedef enum { DIRECTION_IN, DIRECTION_OUT} decklink_direction_t;
|
typedef enum { DIRECTION_IN, DIRECTION_OUT} decklink_direction_t;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
#if BLACKMAGIC_DECKLINK_API_VERSION < 0x0a040000
|
||||||
typedef unsigned long buffercount_type;
|
typedef unsigned long buffercount_type;
|
||||||
|
#else
|
||||||
|
typedef unsigned int buffercount_type;
|
||||||
|
#endif
|
||||||
IDeckLinkIterator *CreateDeckLinkIteratorInstance(void);
|
IDeckLinkIterator *CreateDeckLinkIteratorInstance(void);
|
||||||
#else
|
#else
|
||||||
typedef uint32_t buffercount_type;
|
typedef uint32_t buffercount_type;
|
||||||
|
|
Loading…
Reference in New Issue