mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
codecparsers: vc1: fix bitplanes decoding (check for errors).
This commit is contained in:
parent
839acd54f6
commit
40a1ed8288
1 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue