#include "bintext.h"
#include "internal.h"
+#define FONT_WIDTH 8
+
typedef struct XbinContext {
AVFrame *frame;
int palette[16];
break;
}
}
+ if (avctx->width < FONT_WIDTH || avctx->height < s->font_height)
+ return AVERROR_INVALIDDATA;
+
s->frame = av_frame_alloc();
if (!s->frame)
}
}
-#define FONT_WIDTH 8
-
/**
* Draw character to screen
*/