static int mpjpeg_write_packet(AVFormatContext *s, int stream_index, UINT8 *buf, int size)
static int mpjpeg_write_packet(AVFormatContext *s, int stream_index, UINT8 *buf, int size, int force_pts)
static int mpjpeg_write_packet(AVFormatContext *s,                                int stream_index, UINT8 *buf, int size){    UINT8 buf1[256];    snprintf(buf1, sizeof(buf1), "Content-type: image/jpeg\n\n");    put_buffer(&s->pb, buf1, strlen(buf1));    put_buffer(&s->pb, buf, size);    snprintf(buf1, sizeof(buf1), "\n--%s\n", BOUNDARY_TAG);    put_buffer(&s->pb, buf1, strlen(buf1));    put_flush_packet(&s->pb);    return 0;}