]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/ccaption_dec: use uint8_t type for prev_cmd array
authorPaul B Mahol <onemda@gmail.com>
Fri, 19 Jun 2020 21:14:26 +0000 (23:14 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sat, 20 Jun 2020 13:07:26 +0000 (15:07 +0200)
Commands are unsigned so be consistent.

libavcodec/ccaption_dec.c

index b191b08320f79f304d9d9ef5f0757851bb353e76..c971c91693da810176cc3473078136e8a2b368b4 100644 (file)
@@ -240,7 +240,7 @@ typedef struct CCaptionSubContext {
     int64_t buffer_time[2];
     int screen_touched;
     int64_t last_real_time;
-    char prev_cmd[2];
+    uint8_t prev_cmd[2];
     int readorder;
 } CCaptionSubContext;