Commit 59003fe7 authored by Michael Niedermayer's avatar Michael Niedermayer

qt-faststart: simplify code by using FFMIN

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 610efb67
......@@ -303,10 +303,7 @@ int main(int argc, char *argv[])
}
printf(" copying rest of file...\n");
while (last_offset) {
if (last_offset > COPY_BUFFER_SIZE)
bytes_to_copy = COPY_BUFFER_SIZE;
else
bytes_to_copy = last_offset;
bytes_to_copy = FFMIN(bytes_to_copy, last_offset);
if (fread(copy_buffer, bytes_to_copy, 1, infile) != 1) {
perror(argv[1]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment