Commit 17498b70 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '161a301d'

* commit '161a301d':
  mpjpeg: Write the Content-length

Conflicts:
	libavformat/mpjpeg.c

See: 0d2f4eedMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 2a33dc2c 161a301d
......@@ -42,7 +42,8 @@ static int mpjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
{
MPJPEGContext *mpj = s->priv_data;
avio_printf(s->pb, "Content-type: image/jpeg\r\n");
avio_printf(s->pb, "Content-length: %d\r\n\r\n", pkt->size);
avio_printf(s->pb, "Content-length: %d\r\n\r\n",
pkt->size);
avio_write(s->pb, pkt->data, pkt->size);
avio_printf(s->pb, "\r\n--%s\r\n", mpj->boundary_tag);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment