Message ID | 70a15566835b8a83cf98921ca23b382937348e23.1570398124.git.barsnick@gmx.net |
---|---|
State | New |
Headers | show |
lgtm On 10/7/19, Moritz Barsnick <barsnick@gmx.net> wrote: > The string matching function's return value was evaluated incorrectly. > > Fixes trac #7920. > > Signed-off-by: Moritz Barsnick <barsnick@gmx.net> > --- > libavformat/mpjpegdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c > index 84130ab718..c0ffaf616e 100644 > --- a/libavformat/mpjpegdec.c > +++ b/libavformat/mpjpegdec.c > @@ -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; > -- > 2.20.1 > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c index 84130ab718..c0ffaf616e 100644 --- a/libavformat/mpjpegdec.c +++ b/libavformat/mpjpegdec.c @@ -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;
The string matching function's return value was evaluated incorrectly. Fixes trac #7920. Signed-off-by: Moritz Barsnick <barsnick@gmx.net> --- libavformat/mpjpegdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1