[FFmpeg-devel] [PATCH] Warn if user specifies bitrates smaller than 1000
Benoit Fouet
benoit.fouet
Wed Oct 10 21:02:47 CEST 2007
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...
Ben
More information about the ffmpeg-devel
mailing list