25 #define BOUNDARY_TAG "ffserver"
41 snprintf(buf1,
sizeof(buf1),
"Content-type: image/jpeg\r\n");
44 snprintf(buf1,
sizeof(buf1),
"Content-length: %d\r\n\r\n", pkt->
size);
61 .mime_type =
"multipart/x-mixed-replace;boundary=" BOUNDARY_TAG,
static int mpjpeg_write_trailer(AVFormatContext *s)
AVOutputFormat ff_mpjpeg_muxer
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVIOContext * pb
I/O context.
static int mpjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
static int mpjpeg_write_header(AVFormatContext *s)
This structure stores compressed data.