|
|
@@ -35,6 +35,8 @@ |
|
|
#include "bintext.h" |
|
|
#include "bintext.h" |
|
|
#include "internal.h" |
|
|
#include "internal.h" |
|
|
|
|
|
|
|
|
|
|
|
#define FONT_WIDTH 8 |
|
|
|
|
|
|
|
|
typedef struct XbinContext { |
|
|
typedef struct XbinContext { |
|
|
AVFrame *frame; |
|
|
AVFrame *frame; |
|
|
int palette[16]; |
|
|
int palette[16]; |
|
|
@@ -91,6 +93,9 @@ static av_cold int decode_init(AVCodecContext *avctx) |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if (avctx->width < FONT_WIDTH || avctx->height < s->font_height) |
|
|
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s->frame = av_frame_alloc(); |
|
|
s->frame = av_frame_alloc(); |
|
|
if (!s->frame) |
|
|
if (!s->frame) |
|
|
@@ -113,8 +118,6 @@ av_unused static void hscroll(AVCodecContext *avctx) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#define FONT_WIDTH 8 |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Draw character to screen |
|
|
* Draw character to screen |
|
|
*/ |
|
|
*/ |
|
|
|