]> git.sesse.net Git - ffmpeg/commitdiff
avformat/mpjpegdec: fix finding multipart boundary parameter
authorMoritz Barsnick <barsnick@gmx.net>
Sun, 6 Oct 2019 22:19:28 +0000 (00:19 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Oct 2019 11:21:50 +0000 (13:21 +0200)
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>
libavformat/mpjpegdec.c

index 84130ab718d37706b52cb555c6277fda007a1a14..c0ffaf616e64eb4e777312311fa7283441cd7c20 100644 (file)
@@ -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;