mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 10:15:22 +00:00
avcodec/svq1dec: Check init_get_bits8() for failure
Fixes: CID1322313
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit a51d4246d8
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
7528e36774
commit
86f0534b48
@ -617,9 +617,12 @@ static int svq1_decode_frame(AVCodecContext *avctx, void *data,
|
||||
uint8_t *current;
|
||||
int result, i, x, y, width, height;
|
||||
svq1_pmv *pmv;
|
||||
int ret;
|
||||
|
||||
/* initialize bit buffer */
|
||||
init_get_bits8(&s->gb, buf, buf_size);
|
||||
ret = init_get_bits8(&s->gb, buf, buf_size);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
/* decode frame header */
|
||||
s->frame_code = get_bits(&s->gb, 22);
|
||||
|
Loading…
Reference in New Issue
Block a user