diff mbox series

[FFmpeg-devel,3/4] mm: don't fail if x offset exceeds frame width

Message ID 7f3201243abaa14fc4851829f2452999809c3140.1717837373.git.pross@xvid.org
State New
Headers show
Series [FFmpeg-devel,1/4] mm: set audio pts proportionally to audio offset | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Peter Ross June 8, 2024, 9:05 a.m. UTC
---
 libavcodec/mmvideo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c
index b5b6ffd25b..3b6b9ed580 100644
--- a/libavcodec/mmvideo.c
+++ b/libavcodec/mmvideo.c
@@ -162,7 +162,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;