diff options
author | Michael Niedermayer | 2015-07-09 00:10:20 +0200 |
---|---|---|
committer | Michael Niedermayer | 2015-07-09 00:11:32 +0200 |
commit | 17498b70d8b733804723b63a9f80c35f206daadf (patch) | |
tree | f773db6313868ca876996f377990e4fbaccdff39 /libavformat | |
parent | 2a33dc2cdf6d62204f6f5c425c185d714403daa6 (diff) | |
parent | 161a301d44274645c2272855dac3e4664f935603 (diff) |
Merge commit '161a301d44274645c2272855dac3e4664f935603'
* commit '161a301d44274645c2272855dac3e4664f935603':
mpjpeg: Write the Content-length
Conflicts:
libavformat/mpjpeg.c
See: 0d2f4eedc8a46892471c51cbc7a78cd9a489771a
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpjpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mpjpeg.c b/libavformat/mpjpeg.c index 2ea448833f..3904ccb2b4 100644 --- a/libavformat/mpjpeg.c +++ b/libavformat/mpjpeg.c @@ -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); |