mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +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 (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…
Reference in a new issue