[FFmpeg-cvslog] avcodec/jpeg2000: change flags array type to 16bit

Michael Niedermayer git at videolan.org
Wed Jun 24 18:14:27 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jun 24 17:44:30 2015 +0200| [d7e224ec24f73258e96daa02503fb405b1480a89] | committer: Michael Niedermayer

avcodec/jpeg2000: change flags array type to 16bit

reduce memory needed for flags

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/jpeg2000.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/jpeg2000.h b/libavcodec/jpeg2000.h
index c1303f2..24395a2 100644
--- a/libavcodec/jpeg2000.h
+++ b/libavcodec/jpeg2000.h
@@ -124,7 +124,7 @@ enum Jpeg2000Quantsty { // quantization style
 
 typedef struct Jpeg2000T1Context {
     int data[JPEG2000_MAX_CBLKW][JPEG2000_MAX_CBLKH];
-    int flags[JPEG2000_MAX_CBLKW + 2][JPEG2000_MAX_CBLKH + 2];
+    uint16_t flags[JPEG2000_MAX_CBLKW + 2][JPEG2000_MAX_CBLKH + 2];
     MqcState mqc;
 } Jpeg2000T1Context;
 



More information about the ffmpeg-cvslog mailing list