[FFmpeg-cvslog] avcodec/escape124: change transitions table type to int8_t

Paul B Mahol git at videolan.org
Sun May 15 01:26:46 CEST 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun May 15 01:17:02 2016 +0200| [26eee872e8ca65f59114280853d868e3dd23a114] | committer: Paul B Mahol

avcodec/escape124: change transitions table type to int8_t

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

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

diff --git a/libavcodec/escape124.c b/libavcodec/escape124.c
index 50a86c8..9a51bda 100644
--- a/libavcodec/escape124.c
+++ b/libavcodec/escape124.c
@@ -145,7 +145,7 @@ static MacroBlock decode_macroblock(Escape124Context* s, GetBitContext* gb,
     unsigned block_index, depth;
     int value = get_bits1(gb);
     if (value) {
-        static const char transitions[3][2] = { {2, 1}, {0, 2}, {1, 0} };
+        static const int8_t transitions[3][2] = { {2, 1}, {0, 2}, {1, 0} };
         value = get_bits1(gb);
         *codebook_index = transitions[*codebook_index][value];
     }



More information about the ffmpeg-cvslog mailing list