[FFmpeg-devel] [PATCH 4/4] avformat/mov: Stash mfra size if we're reading it anyway

Derek Buitenhuis derek.buitenhuis at gmail.com
Tue Sep 1 19:06:26 EEST 2020


On 01/09/2020 17:02, James Almer wrote:
> How else would you read 32bit signed integers using AVIOContext function
> helpers if not with avio_rb32()?

The mfra size is not signed. It is an unsigned 32-bit integer.

Spec (mfro is the last part of the mfra):

    aligned(8) class MovieFragmentRandomAccessOffsetBox
      extends FullBox(‘mfro’, version, 0) {
        unsigned   int(32)   size;
    }

- Derek


More information about the ffmpeg-devel mailing list