diff options
author | Peter Ross <pross@xvid.org> | 2024-06-08 18:39:40 +1000 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2024-11-21 19:41:12 +1100 |
commit | 66124bc36887676c9e25410925063eaecefd37d8 (patch) | |
tree | 925a39b7e719a46e0e8248999251cc1b92811298 | |
parent | 63ea1660fa06d30c3bcbad68373a6caf88ac9c4c (diff) | |
download | ffmpeg-66124bc36887676c9e25410925063eaecefd37d8.tar.gz |
avcodec/mm: don't fail if x offset exceeds frame width
-rw-r--r-- | libavcodec/mmvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c index 933d895f96..d339967702 100644 --- a/libavcodec/mmvideo.c +++ b/libavcodec/mmvideo.c @@ -161,7 +161,7 @@ static int mm_decode_inter(MmContext * s, int half_horiz, int half_vert) for(j=0; j<8; j++) { int replace = (replace_array >> (7-j)) & 1; if (x + half_horiz >= s->avctx->width) - return AVERROR_INVALIDDATA; + break; if (replace) { int color = bytestream2_get_byte(&data_ptr); s->frame->data[0][y*s->frame->linesize[0] + x] = color; |