summaryrefslogtreecommitdiff
path: root/vhook
diff options
context:
space:
mode:
Diffstat (limited to 'vhook')
-rw-r--r--vhook/watermark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vhook/watermark.c b/vhook/watermark.c
index e176427bb4..e8562fb648 100644
--- a/vhook/watermark.c
+++ b/vhook/watermark.c
@@ -343,8 +343,8 @@ int get_watermark_picture(ContextInfo *ci, int cleanup)
// Hack to correct wrong frame rates that seem to be generated by some
// codecs
- if (ci->pCodecCtx->frame_rate>1000 && ci->pCodecCtx->frame_rate_base==1)
- ci->pCodecCtx->frame_rate_base=1000;
+ if (ci->pCodecCtx->time_base.den>1000 && ci->pCodecCtx->time_base.num==1)
+ ci->pCodecCtx->time_base.num=1000;
/*
* Allocate a video frame to store the decoded images in.