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>
Sun, 8 Jul 2018 17:45:47 +0000 (19:45 +0200)
commite6d3fd942f772f54ab6a5ca619cdaadef26b7702
tree5ff47e9601bd8059a53384c4751ceea20b8d5deb
parent09e4f8436542f93e70ad668ea3c22e10f451006a
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>
(cherry picked from commit 95556e27e2c1d56d9e18f5db34d6f756f3011148)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/movenc.c