From: Clément Bœsch Date: Sat, 9 Jan 2016 11:38:36 +0000 (+0100) Subject: lavc/ccaption_dec: mark row and font as const in capture_screen() X-Git-Tag: n3.0~616 X-Git-Url: https://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=31bff21d2c0696cc1fb6aaeb6aff1090f8fced8f;ds=inline lavc/ccaption_dec: mark row and font as const in capture_screen() --- diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c index 6e26342c82..e84c4800c8 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_dec.c @@ -291,8 +291,8 @@ static int capture_screen(CCaptionSubContext *ctx) for (i = 0; screen->row_used && i < SCREEN_ROWS; i++) { if (CHECK_FLAG(screen->row_used, i)) { - char *row = screen->characters[i]; - char *font = screen->fonts[i]; + const char *row = screen->characters[i]; + const char *font = screen->fonts[i]; int j = 0; /* skip leading space */