* commit '01348e411f962f5e4605d649fc9a47a54587ba8e': avconv_opt: Consistently iterate through hwaccels array in all cases Merged-by: James Almer <jamrial@gmail.com>
@@ -185,7 +185,7 @@ static int show_hwaccels(void *optctx, const char *opt, const char *arg)
int i;
printf("Hardware acceleration methods:\n");
- for (i = 0; i < FF_ARRAY_ELEMS(hwaccels) - 1; i++) {
+ for (i = 0; hwaccels[i].name; i++) {
printf("%s\n", hwaccels[i].name);
}
printf("\n");