[FFmpeg-devel] [PATCH] aacsbr: break infinite loop in sbr_hf_calc_npatches

Claudio Freire klaussfreire at gmail.com
Wed Apr 22 17:35:24 CEST 2015


On Wed, Apr 22, 2015 at 10:23 AM, Andreas Cadhalpun
<andreas.cadhalpun at googlemail.com> wrote:
> +        if (k == last_k && msb == last_msb) {
> +            av_log(ac->avctx, AV_LOG_ERROR, "patch construction failed\n");
> +            return AVERROR_INVALIDDATA;
> +        }
> +        last_k = k;
> +        last_msb = msb;


I don't think the INVALIDDATA return will have the desired effect.

I think you want return -1;


More information about the ffmpeg-devel mailing list