On 03/11/2016 18:32, Diego Biurrun wrote:
> -    for (i = 0; i < FF_ARRAY_ELEMS(hwaccels) - 1; i++) {
> +    while (hwaccels[i++].name)

    for (i = 0; hwaccels[i].name; i++) {

Is how it is used everywhere else.

Alternatively we can drop `-Wtype-limits` and use the FF_ARRAY_ELEMS()
everywhere.

I prefer having the `for (i = 0; hwaccels[i].name; i++) {` everywhere
for consistency.

lu

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to