summaryrefslogtreecommitdiff
path: root/libavcodec/xbmenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/xbmenc.c')
-rw-r--r--libavcodec/xbmenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/xbmenc.c b/libavcodec/xbmenc.c
index 60fb169457..8369f5370c 100644
--- a/libavcodec/xbmenc.c
+++ b/libavcodec/xbmenc.c
@@ -32,7 +32,8 @@ static int xbm_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *p, int *got_packet)
{
int i, j, l, commas, ret, size, linesize, lineout, rowsout;
- uint8_t *ptr, *buf;
+ const uint8_t *ptr;
+ uint8_t *buf;
linesize = lineout = (avctx->width + 7) / 8;
commas = avctx->height * linesize;