[FFmpeg-devel] [PATCH 04/17] avformat/mxfenc: Use smaller types to make struct smaller

Tomas Härdin tjoppen at acc.umu.se
Tue Nov 9 23:09:49 EET 2021


tis 2021-11-09 klockan 19:01 +0100 skrev Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavformat/mxfenc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
> index d1c4d43a50..3b6604d0d6 100644
> --- a/libavformat/mxfenc.c
> +++ b/libavformat/mxfenc.c
> @@ -2203,9 +2203,9 @@ static int mxf_parse_dv_frame(AVFormatContext
> *s, AVStream *st, AVPacket *pkt)
>  static const struct {
>      UID uid;
>      int frame_size;
> -    int profile;
> +    uint8_t profile;
>      uint8_t interlaced;
> -    int intra_only; // 1 or 0 when there are separate UIDs for Long
> GOP and Intra, -1 when Intra/LGOP detection can be ignored
> +    int8_t intra_only; // 1 or 0 when there are separate UIDs for

Looks OK, and should work as intended since they're at the end of the
struct.

/Tomas



More information about the ffmpeg-devel mailing list