Commit a3846fe6 authored by Moritz Barsnick's avatar Moritz Barsnick Committed by Michael Niedermayer

avformat/mpjpegdec: fix finding multipart boundary parameter

The string matching function's return value was evaluated incorrectly.

Fixes trac #7920.
Signed-off-by: 's avatarMoritz Barsnick <barsnick@gmx.net>
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 961d6493
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment