Merge commit 'e17dc0a254' into release/0.10
* commit 'e17dc0a254':
mmvideo: check horizontal coordinate too
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
e719bfc403
1 changed files with 2 additions and 0 deletions
|
|
@ -152,6 +152,8 @@ static int mm_decode_inter(MmContext * s, int half_horiz, int half_vert)
|
|||
int replace_array = bytestream2_get_byte(&s->gb);
|
||||
for(j=0; j<8; j++) {
|
||||
int replace = (replace_array >> (7-j)) & 1;
|
||||
if (x + half_horiz >= s->avctx->width)
|
||||
return AVERROR_INVALIDDATA;
|
||||
if (replace) {
|
||||
int color = bytestream2_get_byte(&data_ptr);
|
||||
s->frame.data[0][y*s->frame.linesize[0] + x] = color;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue