summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2010-08-23 14:46:59 +0000
committerVitor Sessak <vitor1001@gmail.com>2010-08-23 14:46:59 +0000
commitc4ab519e0076ccbde2ea6a6e4e68916c84c6fc5d (patch)
tree7021032767bc85efa1de51b008554b9be0f6bf55 /ffmpeg.c
parent7f50caa75902a5a3ae1d3226123a20ec3b597669 (diff)
Make "-fs ss" mean "make output file of size equals or less than ss"
instead of current "make output file of size less than ss". Also use it to make MP3 tests more readable (using -fs xxx where xxx is the requested output size, not something slightly lower). Originally committed as revision 24884 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 9e2e4cbc2f..2dd575d4da 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2538,7 +2538,7 @@ static int transcode(AVFormatContext **output_files,
}
/* finish if limit size exhausted */
- if (limit_filesize != 0 && limit_filesize < url_ftell(output_files[0]->pb))
+ if (limit_filesize != 0 && limit_filesize <= url_ftell(output_files[0]->pb))
break;
/* read a frame from it and output it in the fifo */