[Ffmpeg-cvslog] CVS: ffmpeg/vhook watermark.c,1.1,1.2

Michael Niedermayer CVS michael
Sat Apr 30 23:44:02 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/vhook
In directory mail:/var2/tmp/cvs-serv21767/vhook

Modified Files:
	watermark.c 
Log Message:
switch to native time bases


Index: watermark.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/vhook/watermark.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- watermark.c	25 Feb 2005 22:22:20 -0000	1.1
+++ watermark.c	30 Apr 2005 21:43:59 -0000	1.2
@@ -343,8 +343,8 @@
         
         // 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.





More information about the ffmpeg-cvslog mailing list