[FFmpeg-devel] [PATCH] avfilter: add streamselect and astreamselect filter

Michael Niedermayer michael at niedermayer.cc
Fri Jan 22 01:03:02 CET 2016


On Thu, Jan 21, 2016 at 09:31:17AM +0000, Paul B Mahol wrote:
> Hi,
> patch attached.

[...]

> +static int parse_mapping(AVFilterContext *ctx, const char *map)
> +{
> +    StreamSelectContext *s = ctx->priv;
> +
> +    if (!map) {
> +        av_log(ctx, AV_LOG_ERROR, "mapping definition is not set\n");
> +        return AVERROR(EINVAL);
> +    }
> +
> +    av_freep(&s->map);
> +    s->nb_map = 0;
> +    s->map = av_calloc(s->nb_inputs, sizeof(*s->map));
> +    if (!s->map)
> +        return AVERROR(ENOMEM);
> +
> +    for (;;) {
> +        char *p;
> +        const int n = strtol(map, &p, 0);
> +

> +        av_log(ctx, 0,"n=%d map=%p p=%p\n", n, map, p);
                       ^
should be a AV_LOG level if this is intended to be in the commit

[..]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct answer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160122/99031572/attachment.sig>


More information about the ffmpeg-devel mailing list