From c4ab519e0076ccbde2ea6a6e4e68916c84c6fc5d Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Mon, 23 Aug 2010 14:46:59 +0000 Subject: 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 --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ffmpeg.c') 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 */ -- cgit v1.2.3