diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-30 21:53:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-30 22:19:54 +0200 |
commit | 59003fe7c064e98359cce83b1b727fb1026bdf12 (patch) | |
tree | 46a31917753dd519554238d0f579f2e55428bdf3 /tools/qt-faststart.c | |
parent | 610efb67739f850d7d08779f55661e15bc6f6722 (diff) | |
download | ffmpeg-59003fe7c064e98359cce83b1b727fb1026bdf12.tar.gz |
qt-faststart: simplify code by using FFMIN
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools/qt-faststart.c')
-rw-r--r-- | tools/qt-faststart.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c index b1917f18ef..b9dbdfdb6a 100644 --- a/tools/qt-faststart.c +++ b/tools/qt-faststart.c @@ -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]); |