[FFmpeg-cvslog] r15265 - in trunk/libavcodec: avcodec.h utils.c

michael subversion
Mon Sep 8 17:28:07 CEST 2008


Author: michael
Date: Mon Sep  8 17:28:07 2008
New Revision: 15265

Log:
Remove DEFAULT_FRAME_RATE_BASE.


Modified:
   trunk/libavcodec/avcodec.h
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h	(original)
+++ trunk/libavcodec/avcodec.h	Mon Sep  8 17:28:07 2008
@@ -798,8 +798,6 @@ typedef struct AVFrame {
     FF_COMMON_FRAME
 } AVFrame;
 
-#define DEFAULT_FRAME_RATE_BASE 1001000
-
 /**
  * main external API structure.
  * New fields can be added to the end with minor version bumps.

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	(original)
+++ trunk/libavcodec/utils.c	Mon Sep  8 17:28:07 2008
@@ -1492,7 +1492,7 @@ int av_parse_video_frame_rate(AVRational
     }
     else {
         /* Finally we give up and parse it as double */
-        AVRational time_base = av_d2q(strtod(arg, 0), DEFAULT_FRAME_RATE_BASE);
+        AVRational time_base = av_d2q(strtod(arg, 0), 1001000);
         frame_rate->den = time_base.den;
         frame_rate->num = time_base.num;
     }




More information about the ffmpeg-cvslog mailing list