Le sextidi 16 thermidor, an CCXXII, Timothy Gu a écrit :
> >          s->rdft = av_rdft_init(rdft_bits, DFT_R2C);
> > +        if (!s->rdft) {
> > +            av_log(ctx, AV_LOG_ERROR, "Unable to allocate RDFT context. "
> > +                   "Maybe window too high.\n");
> > +            return AVERROR(EINVAL);
> ENOMEM?

Ideally, av_rdft_init() would return a proper error code, but that is not
the case. In practice, on modern operating systems, memory allocation for
something that small will never fail. On the other hand, trying to init for
an unsupported window size (<4 or >16) is a very obvious error. Therefore I
believe EINVAL is more likely to reflect the actual error than ENOMEM.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to