aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-07-10 00:31:16 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2020-07-10 20:27:07 +0200
commitdde60772970ed663b85d475e741013a0222decda (patch)
treea3a1c75994a8364ff69aa9f28c92544d2204c1b2
parent4a10bc8f6f5d600c44ecb9b43cd9abf13bf3bfae (diff)
downloadffmpeg-dde60772970ed663b85d475e741013a0222decda.tar.gz
avcodec/mjpeg_parser: Adjust size rejection threshold
Fixes: 86987846-429c8d80-c197-11ea-916b-bb4738e09687.jpg Fixes: Regression since ec3d8a0e6945fe015d16cd98a1e7dbb4be815c15 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/mjpeg_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpeg_parser.c b/libavcodec/mjpeg_parser.c
index c642b2ecbc..f54fdd37cb 100644
--- a/libavcodec/mjpeg_parser.c
+++ b/libavcodec/mjpeg_parser.c
@@ -82,7 +82,7 @@ static int find_frame_end(MJPEGParserContext *m, const uint8_t *buf, int buf_siz
return i-3;
} else if(state<0xFFD00000 || state>0xFFD9FFFF){
m->size= (state&0xFFFF)-1;
- if (m->size >= 0x8000)
+ if (m->size >= 0xF000)
m->size = 0;
}
}