Snow 1pass ratecontrol

Originally committed as revision 5416 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Loren Merritt
2006-05-28 12:38:10 +00:00
parent ac2750ec79
commit 4e64beadf0
3 changed files with 75 additions and 18 deletions

View File

@@ -2402,9 +2402,9 @@ static void opt_pre_me(const char *arg)
static void opt_qscale(const char *arg)
{
video_qscale = atof(arg);
if (video_qscale < 0.01 ||
if (video_qscale <= 0 ||
video_qscale > 255) {
fprintf(stderr, "qscale must be >= 0.01 and <= 255\n");
fprintf(stderr, "qscale must be > 0.0 and <= 255\n");
exit(1);
}
}