Browse Source

Simplify: use FFMIN

Originally committed as revision 20213 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Reimar Döffinger 15 years ago
parent
commit
098d8e0950
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavformat/aviobuf.c

+ 1
- 3
libavformat/aviobuf.c View File

@@ -107,9 +107,7 @@ void put_buffer(ByteIOContext *s, const unsigned char *buf, int size)
int len;

while (size > 0) {
len = (s->buf_end - s->buf_ptr);
if (len > size)
len = size;
len = FFMIN(s->buf_end - s->buf_ptr, size);
memcpy(s->buf_ptr, buf, len);
s->buf_ptr += len;



Loading…
Cancel
Save