aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rawdec.c
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-07-29 22:11:18 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-29 23:50:46 +0200
commitbf51fcd304d5594a4d8eed2bedf0ef0f68fa65f8 (patch)
tree4c563ac6c4173f0b86820693ab2085fa24b289aa /libavformat/rawdec.c
parentf8b81a02c980609c450992a0c261330a1ae95d86 (diff)
downloadffmpeg-bf51fcd304d5594a4d8eed2bedf0ef0f68fa65f8.tar.gz
rawdec: fix mjpeg probing
There can be other headers than "Content-Type:" (in this case, a "Content-Length:" header was following), so checking for a trailing newline is wrong. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/rawdec.c')
-rw-r--r--libavformat/rawdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index b903e63fb4..caa209faf5 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -188,7 +188,7 @@ static int mjpeg_probe(AVProbeData *p)
}
if (nb_invalid*4 + 1 < nb_frames) {
- static const char ct_jpeg[] = "\r\nContent-Type: image/jpeg\r\n\r\n";
+ static const char ct_jpeg[] = "\r\nContent-Type: image/jpeg\r\n";
int i;
for (i=0; i<FFMIN(p->buf_size - sizeof(ct_jpeg), 100); i++)