OSDN Git Service

mpjpeg: Cope with multipart lacking the initial CRLF
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 22 Oct 2015 03:07:05 +0000 (05:07 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 23 Oct 2015 09:56:38 +0000 (11:56 +0200)
commit18f9308e6a96bbeb034ee5213a6d41e0b6c2ae74
treedc22415eaed9dc6507d349f5b92020a6c8b78864
parent22f4d9c303ede1a240538fd105c97047db40dc86
mpjpeg: Cope with multipart lacking the initial CRLF

Some server in the wild do not put the boundary at a newline
as rfc1347 7.2.1 states.
Cope with that by reading a line and if it is not empty reading
a second one.

Reported-By: bitingsock
libavformat/mpjpegdec.c