mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
mpjpeg: Use proper CR/LF in multipart headers
This is more correct. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
cb167f2947
commit
6ccf76aec7
@ -26,7 +26,7 @@
|
||||
|
||||
static int mpjpeg_write_header(AVFormatContext *s)
|
||||
{
|
||||
avio_printf(s->pb, "--%s\n", BOUNDARY_TAG);
|
||||
avio_printf(s->pb, "--%s\r\n", BOUNDARY_TAG);
|
||||
avio_flush(s->pb);
|
||||
return 0;
|
||||
}
|
||||
@ -34,12 +34,12 @@ static int mpjpeg_write_header(AVFormatContext *s)
|
||||
static int mpjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
{
|
||||
avio_printf(s->pb,
|
||||
"Content-length: %i\n"
|
||||
"Content-type: image/jpeg\n\n",
|
||||
"Content-length: %i\r\n"
|
||||
"Content-type: image/jpeg\r\n\r\n",
|
||||
pkt->size);
|
||||
avio_write(s->pb, pkt->data, pkt->size);
|
||||
|
||||
avio_printf(s->pb, "\n--%s\n", BOUNDARY_TAG);
|
||||
avio_printf(s->pb, "\r\n--%s\r\n", BOUNDARY_TAG);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user