X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmpjpeg.c;h=e98fb363e79d6c1bc1cfd5173570a2073af2bfb9;hb=e356fc57a2e9887370caec58d8aafeafd1f336dc;hp=ecaad55ea74207025b18f9186d56a663d34885bd;hpb=bde15e74de442cebf61acc6cd598a13aca249030;p=ffmpeg diff --git a/libavformat/mpjpeg.c b/libavformat/mpjpeg.c index ecaad55ea74..e98fb363e79 100644 --- a/libavformat/mpjpeg.c +++ b/libavformat/mpjpeg.c @@ -1,6 +1,6 @@ /* * Multipart JPEG format - * Copyright (c) 2000, 2001, 2002, 2003 Fabrice Bellard. + * Copyright (c) 2000, 2001, 2002, 2003 Fabrice Bellard * * This file is part of FFmpeg. * @@ -29,7 +29,7 @@ static int mpjpeg_write_header(AVFormatContext *s) uint8_t buf1[256]; snprintf(buf1, sizeof(buf1), "--%s\n", BOUNDARY_TAG); - put_buffer(s->pb, buf1, strlen(buf1)); + avio_write(s->pb, buf1, strlen(buf1)); put_flush_packet(s->pb); return 0; } @@ -39,11 +39,11 @@ static int mpjpeg_write_packet(AVFormatContext *s, AVPacket *pkt) uint8_t buf1[256]; snprintf(buf1, sizeof(buf1), "Content-type: image/jpeg\n\n"); - put_buffer(s->pb, buf1, strlen(buf1)); - put_buffer(s->pb, pkt->data, pkt->size); + avio_write(s->pb, buf1, strlen(buf1)); + avio_write(s->pb, pkt->data, pkt->size); snprintf(buf1, sizeof(buf1), "\n--%s\n", BOUNDARY_TAG); - put_buffer(s->pb, buf1, strlen(buf1)); + avio_write(s->pb, buf1, strlen(buf1)); put_flush_packet(s->pb); return 0; } @@ -53,9 +53,9 @@ static int mpjpeg_write_trailer(AVFormatContext *s) return 0; } -AVOutputFormat mpjpeg_muxer = { +AVOutputFormat ff_mpjpeg_muxer = { "mpjpeg", - NULL_IF_CONFIG_SMALL("Mime multipart JPEG format"), + NULL_IF_CONFIG_SMALL("MIME multipart JPEG format"), "multipart/x-mixed-replace;boundary=" BOUNDARY_TAG, "mjpg", 0,