Browse Source

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>
tags/n4.3
Moritz Barsnick Michael Niedermayer 6 years ago
parent
commit
a3846fe69b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mpjpegdec.c

+ 1
- 1
libavformat/mpjpegdec.c View 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;


Loading…
Cancel
Save