On Sat, Apr 07, 2012 at 10:51:45PM -0700, Luca Barbato wrote:
> Do not error out if the bitrate requested is too high, return defined
> errors on unsupported requests.
> ---
>  libavcodec/libaacplus.c |   13 +++++++++----
>  1 files changed, 9 insertions(+), 4 deletions(-)

Please squash all three commits.

> --- a/libavcodec/libaacplus.c
> +++ b/libavcodec/libaacplus.c
> @@ -43,14 +43,19 @@ static av_cold int aacPlus_encode_init(AVCodecContext 
> *avctx)
> +    if (avctx->bit_rate > 64*1024) {

64 * 1024

Also, these numbers are slightly magical.

> +        av_log(avctx, AV_LOG_WARNING, "bitrate %d unsupported, downgrading 
> to the supported maximum\n", avctx->bit_rate);

long line

> +        avctx->bit_rate = 64*1024;

ditto

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to