From b35ce9a97ca61f61f75be66ce4889d3d80e6869d Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 8 Sep 2008 15:28:07 +0000 Subject: [PATCH] Remove DEFAULT_FRAME_RATE_BASE. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15265 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/avcodec.h | 2 -- libavcodec/utils.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 6a58ea732..73d90f52e 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -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. diff --git a/libavcodec/utils.c b/libavcodec/utils.c index adda58658..6b86e554a 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -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; } -- 2.11.4.GIT