[FFmpeg-devel] [PATCH] avformat/sierravmd: Make struct smaller by reordering

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Fri Mar 26 06:38:32 EET 2021


Andreas Rheinhardt:
> Also remove keyframe from vmd_frame, it is unused.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavformat/sierravmd.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c
> index 11a883614f..cfbf1843d4 100644
> --- a/libavformat/sierravmd.c
> +++ b/libavformat/sierravmd.c
> @@ -38,10 +38,9 @@
>  
>  typedef struct vmd_frame {
>    int stream_index;
> -  int64_t frame_offset;
>    unsigned int frame_size;
> +  int64_t frame_offset;
>    int64_t pts;
> -  int keyframe;
>    unsigned char frame_record[BYTES_PER_FRAME_RECORD];
>  } vmd_frame;
>  
> 
Will apply this patch tomorrow unless there are objections.

- Andreas


More information about the ffmpeg-devel mailing list