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

Peter Ross pross at xvid.org
Fri Sep 24 02:59:05 EEST 2021


On Thu, Sep 23, 2021 at 06:29:35PM +0200, Andreas Rheinhardt wrote:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  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;

ok

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210924/8bcfb195/attachment.sig>


More information about the ffmpeg-devel mailing list