avcodec/mpeg4videoenc: Use 64 bit for times in mpeg4_encode_gop_header()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 21 May 2018 21:08:05 +0000 (23:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 9 Jul 2018 23:52:56 +0000 (01:52 +0200)
commit6bbef938839adc55e8e048bc9cc2e0fafe2064df
tree67dd2cbbd226574d633ef868e829a64b5c9b6dd2
parent3d4e0858d68bce81f25bbab4ac912d971175daaf
avcodec/mpeg4videoenc: Use 64 bit for times in mpeg4_encode_gop_header()

Fixes truncation
Fixes Assertion n <= 31 && value < (1U << n) failed at libavcodec/put_bits.h:169
Fixes: ffmpeg_crash_2.avi

Found-by: Thuan Pham <thuanpv@comp.nus.edu.sg>, Marcel Böhme, Andrew Santosa and Alexandru RazvanCaciulescu with AFLSmart
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e1182fac1afba92a4975917823a5f644bee7e6e8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg4videoenc.c