[FFmpeg-cvslog] avformat/mpjpegdec: fix finding multipart boundary parameter
Moritz Barsnick
git at videolan.org
Sat Oct 12 15:18:34 EEST 2019
ffmpeg | branch: master | Moritz Barsnick <barsnick at gmx.net> | Mon Oct 7 00:19:28 2019 +0200| [a3846fe69bbd71341155c33ece14b0591264caa8] | committer: 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: Moritz Barsnick <barsnick at gmx.net>
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a3846fe69bbd71341155c33ece14b0591264caa8
---
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;
More information about the ffmpeg-cvslog
mailing list