[FFmpeg-cvslog] avcodec/qpeg: reduce unnecessary size of tables

Paul B Mahol git at videolan.org
Mon Aug 31 00:55:12 EEST 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Aug 30 23:49:11 2020 +0200| [ef46de695f1f54ec1025ec20c07b25685787d956] | committer: Paul B Mahol

avcodec/qpeg: reduce unnecessary size of tables

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

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

diff --git a/libavcodec/qpeg.c b/libavcodec/qpeg.c
index 84304cae3b..40931e3bdc 100644
--- a/libavcodec/qpeg.c
+++ b/libavcodec/qpeg.c
@@ -115,9 +115,9 @@ static void qpeg_decode_intra(QpegContext *qctx, uint8_t *dst,
     }
 }
 
-static const int qpeg_table_h[16] =
+static const uint8_t qpeg_table_h[16] =
  { 0x00, 0x20, 0x20, 0x20, 0x18, 0x10, 0x10, 0x20, 0x10, 0x08, 0x18, 0x08, 0x08, 0x18, 0x10, 0x04};
-static const int qpeg_table_w[16] =
+static const uint8_t qpeg_table_w[16] =
  { 0x00, 0x20, 0x18, 0x08, 0x18, 0x10, 0x20, 0x10, 0x08, 0x10, 0x20, 0x20, 0x08, 0x10, 0x18, 0x04};
 
 /* Decodes delta frames */



More information about the ffmpeg-cvslog mailing list