mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-01 04:12:14 +00:00
avformat/mpjpegdec: fix finding multipart boundary parameter
The string matching function's return value was evaluated incorrectly. Fixes trac #7920. Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
961d6493e8
commit
a3846fe69b
@ -267,7 +267,7 @@ static char* mpjpeg_get_boundary(AVIOContext* pb)
|
||||
while (av_isspace(*start))
|
||||
start++;
|
||||
|
||||
if (!av_stristart(start, "boundary=", &start)) {
|
||||
if (av_stristart(start, "boundary=", &start)) {
|
||||
end = strchr(start, ';');
|
||||
if (end)
|
||||
len = end - start - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user