OSDN Git Service

Remove DEFAULT_FRAME_RATE_BASE.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 8 Sep 2008 15:28:07 +0000 (15:28 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 8 Sep 2008 15:28:07 +0000 (15:28 +0000)
Originally committed as revision 15265 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/avcodec.h
libavcodec/utils.c

index 6a58ea7..73d90f5 100644 (file)
@@ -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.
index adda586..6b86e55 100644 (file)
@@ -1492,7 +1492,7 @@ int av_parse_video_frame_rate(AVRational *frame_rate, const char *arg)
     }
     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;
     }