codecparsers: vc1: fix bitplanes decoding (check for errors).

This commit is contained in:
Gwenole Beauchesne 2011-10-07 17:42:17 +02:00 committed by Thibault Saunier
parent 839acd54f6
commit 40a1ed8288

View file

@ -551,13 +551,15 @@ bitplane_decoding (GstBitReader * br, guint8 * data,
if (x) { if (x) {
if (data) if (data)
pdata = data + y * stride; pdata = data + y * stride;
decode_colskip (br, pdata, x, height, stride, invert_mask); if (!decode_colskip (br, pdata, x, height, stride, invert_mask))
goto failed;
} }
if (y) { if (y) {
if (data) if (data)
pdata = data + x; pdata = data + x;
decode_rowskip (br, pdata, width, y, stride, invert_mask); if (!decode_rowskip (br, pdata, width, y, stride, invert_mask))
goto failed;
} }
break; break;
case IMODE_ROWSKIP: case IMODE_ROWSKIP: