[FFmpeg-cvslog] lavc/ccaption_dec: mark row and font as const in capture_screen()

Clément Bœsch git at videolan.org
Sat Jan 9 12:39:00 CET 2016


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Jan  9 12:38:36 2016 +0100| [31bff21d2c0696cc1fb6aaeb6aff1090f8fced8f] | committer: Clément Bœsch

lavc/ccaption_dec: mark row and font as const in capture_screen()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=31bff21d2c0696cc1fb6aaeb6aff1090f8fced8f
---

 libavcodec/ccaption_dec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index 6e26342..e84c480 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 */



More information about the ffmpeg-cvslog mailing list