mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
mpjpeg: Write the Content-length
This commit is contained in:
parent
d09b4cce21
commit
161a301d44
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user