summaryrefslogtreecommitdiff
path: root/libavdevice/vfwcap.c
diff options
context:
space:
mode:
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) {