avformat/movenc: Do not pass AVCodecParameters in avpriv_request_sample
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 27 Jun 2018 15:27:50 +0000 (17:27 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 28 Jun 2018 19:35:01 +0000 (21:35 +0200)
commit95556e27e2c1d56d9e18f5db34d6f756f3011148
tree81294dfbb62afaa16c868a5d712c12681aa25643
parent00e8181bd97c834fe60751b0c511d4bb97875f78
avformat/movenc: Do not pass AVCodecParameters in avpriv_request_sample

Fixes: out of array read
Fixes: ffmpeg_crash_8.avi

Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/movenc.c