svq1dec: check that the reference frame has the same dimensions as the current one
authorAnton Khirnov <anton@khirnov.net>
Mon, 8 Apr 2013 20:12:12 +0000 (22:12 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 17 Apr 2013 08:55:30 +0000 (10:55 +0200)
commitb1bb8fb860b47e90dd67f0c5740698128fc82dcc
tree248ef12bc1d5eb5d9f0070861b85008dbce2c90e
parentc0771a1ac6da697f86e3b10c8fe5dbc2ee92e347
svq1dec: check that the reference frame has the same dimensions as the current one

They can be different if the last keyframe failed to decode correctly.
Fixes possible invalid reads in such a case.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
libavcodec/svq1dec.c