#include "avcodec.h"
#include "internal.h"
+#if defined(_MSC_VER)
+#define X265_API_IMPORTS 1
+#endif
+
typedef struct libx265Context {
const AVClass *class;
ret = x265_encoder_encode(ctx->encoder, &nal, &nnal,
pic ? &x265pic : NULL, &x265pic_out);
if (ret < 0)
- return AVERROR_UNKNOWN;
+ return AVERROR_EXTERNAL;
if (!nnal)
return 0;