mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00:00
avcodec/loco: check the init_get_bits8() return code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
131a185826
commit
5ba62e89df
@ -130,12 +130,15 @@ static int loco_decode_plane(LOCOContext *l, uint8_t *data, int width, int heigh
|
|||||||
{
|
{
|
||||||
RICEContext rc;
|
RICEContext rc;
|
||||||
int val;
|
int val;
|
||||||
|
int ret;
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
if(buf_size<=0)
|
if(buf_size<=0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
init_get_bits8(&rc.gb, buf, buf_size);
|
if ((ret = init_get_bits8(&rc.gb, buf, buf_size)) < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
rc.save = 0;
|
rc.save = 0;
|
||||||
rc.run = 0;
|
rc.run = 0;
|
||||||
rc.run2 = 0;
|
rc.run2 = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user