[FFmpeg-devel] [PATCH] avformat/mxfenc: Reorder fields in MXFIndexEntry to make it smaller

Michael Niedermayer michael at niedermayer.cc
Sat Mar 14 19:24:28 EET 2020


On Sat, Mar 14, 2020 at 11:21:51AM +0100, Tomas Härdin wrote:
> 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.

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you fake or manipulate statistics in a paper in physics you will never
get a job again.
If you fake or manipulate statistics in a paper in medicin you will get
a job for life at the pharma industry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200314/d230c598/attachment.sig>


More information about the ffmpeg-devel mailing list