On 29/07/14 15:29, Vittorio Giovara wrote:
> -        if (av_pix_fmt_descriptors[pix_fmt].name &&
> -            !strcmp(av_pix_fmt_descriptors[pix_fmt].name, name))
> +        if ((av_pix_fmt_descriptors[pix_fmt].name &&
> +             !strcmp(av_pix_fmt_descriptors[pix_fmt].name, name)) ||
> +            av_match_name(name, av_pix_fmt_descriptors[pix_fmt].alias))
>              return pix_fmt;

I used av_match_name in both cases on purpose, if you want to keep using
the explicit pointer check and compare:

  if (name && (!strcmp || av_match_name))

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

Reply via email to