mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Merge declaration and initialization
Originally committed as revision 20214 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
098d8e0950
commit
90aa6ace63
@ -104,10 +104,8 @@ void put_byte(ByteIOContext *s, int b)
|
||||
|
||||
void put_buffer(ByteIOContext *s, const unsigned char *buf, int size)
|
||||
{
|
||||
int len;
|
||||
|
||||
while (size > 0) {
|
||||
len = FFMIN(s->buf_end - s->buf_ptr, size);
|
||||
int len = FFMIN(s->buf_end - s->buf_ptr, size);
|
||||
memcpy(s->buf_ptr, buf, len);
|
||||
s->buf_ptr += len;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user