mirror of https://github.com/FFmpeg/FFmpeg.git
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@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>pull/328/head
parent
9fe07908c3
commit
ed9279afbd
1 changed files with 3 additions and 7 deletions
Loading…
Reference in new issue