Commit 161a301d authored by Frank Heckenbach's avatar Frank Heckenbach Committed by Luca Barbato

mpjpeg: Write the Content-length

parent d09b4cce
......@@ -33,7 +33,10 @@ static int mpjpeg_write_header(AVFormatContext *s)
static int mpjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
{
avio_printf(s->pb, "Content-type: image/jpeg\n\n");
avio_printf(s->pb,
"Content-length: %i\n"
"Content-type: image/jpeg\n\n",
pkt->size);
avio_write(s->pb, pkt->data, pkt->size);
avio_printf(s->pb, "\n--%s\n", 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