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>
Sun, 27 May 2018 21:10:12 +0000 (23:10 +0200)
commite1182fac1afba92a4975917823a5f644bee7e6e8
treea0bd01a8fc7186d2b92816c61ae4bfde766e0a23
parentfbb283cfefb1865375718c4a56ce608d96a4a8ed
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>
libavcodec/mpeg4videoenc.c