[FFmpeg-cvslog] avcodec/ccaption_dec: use uint8_t type for prev_cmd array

Paul B Mahol git at videolan.org
Sat Jun 20 16:12:49 EEST 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jun 19 23:14:26 2020 +0200| [00842b3a0dee8cd1729c0c7566e0ca4272271bc3] | committer: Paul B Mahol

avcodec/ccaption_dec: use uint8_t type for prev_cmd array

Commands are unsigned so be consistent.

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

 libavcodec/ccaption_dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index b191b08320..c971c91693 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -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;
 



More information about the ffmpeg-cvslog mailing list