Mercurial > libavformat.hg
diff utils.c @ 4001:fcb9de59245f libavformat
uses FF_ARRAY_ELEMS() where appropriate
author | aurel |
---|---|
date | Tue, 21 Oct 2008 21:40:24 +0000 |
parents | f0580597dc48 |
children | dbc5c6bebb68 |
line wrap: on
line diff
--- a/utils.c Sun Oct 19 01:02:48 2008 +0000 +++ b/utils.c Tue Oct 21 21:40:24 2008 +0000 @@ -2904,7 +2904,7 @@ q = NULL; if (!duration) { /* parse the year-month-day part */ - for (i = 0; i < sizeof(date_fmt) / sizeof(date_fmt[0]); i++) { + for (i = 0; i < FF_ARRAY_ELEMS(date_fmt); i++) { q = small_strptime(p, date_fmt[i], &dt); if (q) { break; @@ -2928,7 +2928,7 @@ p++; /* parse the hour-minute-second part */ - for (i = 0; i < sizeof(time_fmt) / sizeof(time_fmt[0]); i++) { + for (i = 0; i < FF_ARRAY_ELEMS(time_fmt); i++) { q = small_strptime(p, time_fmt[i], &dt); if (q) { break;