[FFmpeg-devel] [PATCH] h264_mp4toannexb: Remove unnecessary check

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Wed Jul 31 22:36:00 EEST 2019


Andreas Rheinhardt:
> There can be at most 31 SPS and 255 PPS in the mp4/Matroska extradata.
> Given that each has a size of at most 2^16-1, the length of the output
> derived from these parameter sets can never overflow an ordinary 32 bit
> integer. So use a simple uint32_t instead of uint64_t and replace the
> unnecessary check with an av_assert1.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

I decided to reimplement h264_mp4toannexb via bytestreams (it's simply
so ugly right now). So you can ignore this patchset.

- Andreas


More information about the ffmpeg-devel mailing list