aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mmvideo.c
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2024-06-08 18:39:40 +1000
committerPeter Ross <pross@xvid.org>2024-11-21 19:41:12 +1100
commit66124bc36887676c9e25410925063eaecefd37d8 (patch)
tree925a39b7e719a46e0e8248999251cc1b92811298 /libavcodec/mmvideo.c
parent63ea1660fa06d30c3bcbad68373a6caf88ac9c4c (diff)
downloadffmpeg-66124bc36887676c9e25410925063eaecefd37d8.tar.gz
avcodec/mm: don't fail if x offset exceeds frame width
Diffstat (limited to 'libavcodec/mmvideo.c')
-rw-r--r--libavcodec/mmvideo.c2
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;