[FFmpeg-cvslog] avformat/jvdec: Make sizeof(JVFrame) smaller to save memory

Andreas Rheinhardt git at videolan.org
Sun Sep 26 03:06:11 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Sep 23 18:13:51 2021 +0200| [2882286a08c20fbb50bb55e16c82cbe6fdbfd565] | committer: Andreas Rheinhardt

avformat/jvdec: Make sizeof(JVFrame) smaller to save memory

Reviewed-by: Peter Ross <pross at xvid.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

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

diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c
index 8f21ea1893..93569c87df 100644
--- a/libavformat/jvdec.c
+++ b/libavformat/jvdec.c
@@ -36,8 +36,8 @@
 typedef struct JVFrame {
     int audio_size;    /**< audio packet size (bytes) */
     int video_size;    /**< video packet size (bytes) */
-    int palette_size;  /**< palette size (bytes) */
-    int video_type;    /**< per-frame video compression type */
+    uint16_t palette_size;  /**< palette size (bytes) */
+    uint8_t video_type;     /**< per-frame video compression type */
 } JVFrame;
 
 typedef struct JVDemuxContext {



More information about the ffmpeg-cvslog mailing list