summaryrefslogtreecommitdiff
path: root/libavdevice/vfwcap.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-10-21 21:40:24 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-10-21 21:40:24 +0000
commit37d3e0667abd01124d783f3ca10a4aef05746a2a (patch)
tree284c171f9546a8f4dc4c12878ecb1c8333f63a76 /libavdevice/vfwcap.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/vfwcap.c')
-rw-r--r--libavdevice/vfwcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index 1bab834db2..078c18668c 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -152,7 +152,7 @@ static int shall_we_drop(struct vfw_ctx *ctx)
{
AVFormatContext *s = ctx->s;
const uint8_t dropscore[] = {62, 75, 87, 100};
- const int ndropscores = sizeof(dropscore)/sizeof(dropscore[0]);
+ const int ndropscores = FF_ARRAY_ELEMS(dropscore);
unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer;
if(dropscore[++ctx->frame_num%ndropscores] <= buffer_fullness) {