25 #define BOUNDARY_TAG "avserver" 37 "Content-length: %i\n" 38 "Content-type: image/jpeg\n\n",
54 .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.
int avio_printf(AVIOContext *s, const char *fmt,...) av_printf_format(2