You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-06 08:29:25 +02:00
switch to native time bases
Originally committed as revision 4168 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user