Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-10-22 01:40:24 +0400
committerAurelien Jacobs <aurel@gnuage.org>2008-10-22 01:40:24 +0400
commit37d3e0667abd01124d783f3ca10a4aef05746a2a (patch)
tree284c171f9546a8f4dc4c12878ecb1c8333f63a76 /libavdevice/v4l.c
parent03092e14089e086065bf05671260347ad94a6262 (diff)
uses FF_ARRAY_ELEMS() where appropriate
Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice/v4l.c')
-rw-r--r--libavdevice/v4l.c2
1 files changed, 1 insertions, 1 deletions
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);