aboutsummaryrefslogtreecommitdiffstats
path: root/vhook
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-04-30 21:43:59 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-04-30 21:43:59 +0000
commitc0df9d75bd9a3170a793eb1651354076360998e8 (patch)
tree0f4c75f07fc395d168bf0a7fcd92d6f9d9e9281b /vhook
parentb7782b47c95c26d674df134973d1403e80fe9767 (diff)
downloadffmpeg-c0df9d75bd9a3170a793eb1651354076360998e8.tar.gz
switch to native time bases
Originally committed as revision 4168 to svn://svn.ffmpeg.org/ffmpeg/trunk
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.