summaryrefslogtreecommitdiff
path: root/libavformat/mpjpegdec.c
diff options
context:
space:
mode:
authorMoritz Barsnick <barsnick@gmx.net>2019-10-07 00:19:28 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-10-12 13:21:50 +0200
commita3846fe69bbd71341155c33ece14b0591264caa8 (patch)
tree4d66c6ff2a701f37dd3f8fba40bd05b196693de0 /libavformat/mpjpegdec.c
parent961d6493e8c2846032dfda6f9dba557a98b02de4 (diff)
downloadffmpeg-a3846fe69bbd71341155c33ece14b0591264caa8.tar.gz
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>
Diffstat (limited to 'libavformat/mpjpegdec.c')
-rw-r--r--libavformat/mpjpegdec.c2
1 files changed, 1 insertions, 1 deletions
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;