codecparsers: vc1: fix bitplanes decoding (check for errors).
This commit is contained in:
parent
839acd54f6
commit
40a1ed8288
@ -551,13 +551,15 @@ bitplane_decoding (GstBitReader * br, guint8 * data,
|
||||
if (x) {
|
||||
if (data)
|
||||
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 (data)
|
||||
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;
|
||||
case IMODE_ROWSKIP:
|
||||
|
Loading…
x
Reference in New Issue
Block a user