[FFmpeg-devel] [PATCH] avformat/mxfenc: Reorder fields in MXFIndexEntry to make it smaller
Tomas Härdin
tjoppen at acc.umu.se
Sat Mar 14 12:21:51 EET 2020
fre 2020-03-13 klockan 11:18 +0100 skrev Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
> libavformat/mxfenc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
> index 5e0dc0e889..55c715d776 100644
> --- a/libavformat/mxfenc.c
> +++ b/libavformat/mxfenc.c
> @@ -72,10 +72,10 @@ typedef struct MXFLocalTagPair {
> } MXFLocalTagPair;
>
> typedef struct MXFIndexEntry {
> - uint8_t flags;
> uint64_t offset;
> unsigned slice_offset; ///< offset of audio slice
> uint16_t temporal_ref;
> + uint8_t flags;
> } MXFIndexEntry;
>
> typedef struct MXFStreamContext {
Good catch. Looks fine. I took a look at the fields in the struck, and
it doesn't seem like we can shrink any of them without limiting what
the muxer can currently do.
/Tomas
More information about the ffmpeg-devel
mailing list