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>
Mon, 16 Jul 2018 17:16:13 +0000 (19:16 +0200)
commit672ada0f179b3ef45e52987d8c96716d23aa0722
tree7300f1d9fd486b72df83582689e39549b5349ed4
parent228c05ee547d99e7aae5c895172d99581b03eed9
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