avsdec: Set dimensions instead of relying on the demuxer.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Apr 2012 15:42:18 +0000 (17:42 +0200)
committerReinhard Tartler <siretart@tauware.de>
Fri, 4 Jan 2013 06:43:37 +0000 (07:43 +0100)
commit7a0ff7566b66da0b75dfaaca4347c7b41970f0ef
tree1ff25bdd36b21e17b7f5f59458468d2e7504b63c
parent10c244cc89e80e1e924d442ccf40935bd7162178
avsdec: Set dimensions instead of relying on the demuxer.

The decode function assumes that the video will have those dimensions.

Fixes CVE-2012-2801

CC:libav-stable@libav.org

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit 85f477935cd6b34e6ec2716b20e15ce748277a89)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/avs.c