Skip to content
Snippets Groups Projects
Commit 3c4679c4 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/mjpeg_parser: Adjust size rejection threshold


Fixes: 86987846-429c8d80-c197-11ea-916b-bb4738e09687.jpg
Fixes: Regression since ec3d8a0e

Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit dde60772)
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 832652a9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment