From 37d3e0667abd01124d783f3ca10a4aef05746a2a Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Tue, 21 Oct 2008 21:40:24 +0000 Subject: uses FF_ARRAY_ELEMS() where appropriate Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavdevice/v4l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavdevice/v4l.c') diff --git a/libavdevice/v4l.c b/libavdevice/v4l.c index b58de94738..a469ae0135 100644 --- a/libavdevice/v4l.c +++ b/libavdevice/v4l.c @@ -78,7 +78,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) struct video_audio audio; struct video_picture pict; int j; - int vformat_num = sizeof(video_formats) / sizeof(video_formats[0]); + int vformat_num = FF_ARRAY_ELEMS(video_formats); if (ap->width <= 0 || ap->height <= 0) { av_log(s1, AV_LOG_ERROR, "Wrong size (%dx%d)\n", ap->width, ap->height); -- cgit v1.2.3