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>
Sun, 10 Feb 2013 17:01:15 +0000 (18:01 +0100)
commit6b97e76dfca87ae868fbd2dff689e9de2ee45bcc
tree3ba3c52833bc673dbf1dd1159f29dec42701aab8
parent4475a7d88b89a6ff064f8917ee71657291d1a37a
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