[FFmpeg-devel] [PATCH] Warn if user specifies bitrates smaller than 1000

Ramiro Polla ramiro
Fri Oct 12 01:39:23 CEST 2007


Benoit Fouet wrote:
> Hi,
> 
> Ramiro Polla wrote:
>> Hello,
>>
>> Attached patch should reduce the number of silly bug reports. Please
>> comment on the wording of the message...
>> https://roundup.mplayerhq.hu/roundup/ffmpeg/issue60
>>
>> Ramiro Polla
>> ------------------------------------------------------------------------
>>
>> Index: ffmpeg.c
>> ===================================================================
>> --- ffmpeg.c	(revision 10702)
>> +++ ffmpeg.c	(working copy)
>> @@ -2115,6 +2115,20 @@
>>      }
>>  }
>>  
>> +static void opt_bitrate(const char *arg)
>> +{
>> +    if( atoi(arg) < 1000 )
>> +        fprintf(stderr, "\nWARNING: The -b parameter is set too low\nIt takes bits/s as argument, not kbits/s\n\n");
>>   
> 
> this will issue a warning if a user sets -(a/v)b 64k
> i don't think you'd want that...

New patch attached.

And where is -vb handled? I've always used -b for video. I can't find a 
"vb" option.

Ramiro Polla
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sillyb2.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071011/d1ebb65d/attachment.txt>



More information about the ffmpeg-devel mailing list