pgssubdec: only set w/h/linesize when allocating data
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Wed, 9 Nov 2016 22:23:16 +0000 (23:23 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 26 Nov 2016 23:38:57 +0000 (00:38 +0100)
commit5d2f1ffef1f26e4d66c8e63ab1101da179af11e6
tree5ad1f99d7da60c37a3f5d52f2a54c72902174352
parent80b85300ae0b8c6c1bb813a4390d94e3ea87b1da
pgssubdec: only set w/h/linesize when allocating data

Rects with positive w/h/linesize but no data are invalid.

Reviewed-by: Petri Hintukainen <phintuka@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 995512328ed84bb737bc364e4ef6fba1994f062a)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/pgssubdec.c