Skip to content

Commit

Permalink
Merge pull request #532 from BBBBlarry/master
Browse files Browse the repository at this point in the history
Rebased: read mjpeg format from TrendNet and Axis cameras
  • Loading branch information
JLLeitschuh committed Mar 3, 2016
2 parents 664398e + fd064ea commit 59926fa
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,15 @@ byte[] readImage() throws IOException {
}
}
}

// find embedded jpeg in stream
final String subheader = sb.toString();
final String subheader = sb.toString().toLowerCase();
//log.debug(subheader);

// if (boundryKey == null)
// {
// Yay! - server was nice and sent content length
int c0 = subheader.indexOf("Content-Length: ");
int c0 = subheader.indexOf("content-length: ");
int c1 = subheader.indexOf('\r', c0);

if (c0 < 0) {
Expand Down

0 comments on commit 59926fa

Please sign in to comment.