[FFmpeg-devel] [PATCH 1/4] pan: raise correct error when there is no param specified.

Nicolas George nicolas.george at normalesup.org
Wed Jan 18 13:38:36 CET 2012


Le nonidi 29 nivôse, an CCXX, Clément Bœsch a écrit :
> +    if (!args0) {
> +        av_log(ctx, AV_LOG_ERROR,
> +               "pan filter needs a channel layout and a set "
> +               "of channels definitions as parameter\n");
> +        return AVERROR(EINVAL);
> +    }
>      if (!args)
>          return AVERROR(ENOMEM);

At this point, args0 has already been strduped to init args, it needs to
come earlier, I believe.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120118/02b75195/attachment.asc>


More information about the ffmpeg-devel mailing list