mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-23 19:49:56 +00:00
Merge commit '161a301d44274645c2272855dac3e4664f935603'
* commit '161a301d44274645c2272855dac3e4664f935603':
mpjpeg: Write the Content-length
Conflicts:
libavformat/mpjpeg.c
See: 0d2f4eedc8
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
17498b70d8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user