mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 18:10:13 +01:00
avio: avio: avio_ prefixes for put_* functions
In the name of consistency:
put_byte -> avio_w8
put_<type> -> avio_w<type>
put_buffer -> avio_write
put_nbyte will be made private
put_tag will be merged with avio_put_str
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 77eb5504d3)
This commit is contained in:
committed by
Michael Niedermayer
parent
e48fe14a54
commit
e9eb8d0bce
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user