25 #define BOUNDARY_TAG "avserver" 41 snprintf(buf1,
sizeof(buf1),
"Content-type: image/jpeg\n\n");
58 .mime_type =
"multipart/x-mixed-replace;boundary=" BOUNDARY_TAG,
static int mpjpeg_write_trailer(AVFormatContext *s)
AVOutputFormat ff_mpjpeg_muxer
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int void avio_flush(AVIOContext *s)
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.