[FFmpeg-cvslog] avformat: add 48 fps to the NTSC framerates

Hendrik Leppkes git at videolan.org
Thu Jun 21 12:37:57 CEST 2012


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Mon Apr  9 18:56:46 2012 +0200| [6d887ecac2ed2997d579260c62ee1ce4ca5e55c5] | committer: Michael Niedermayer

avformat: add 48 fps to the NTSC framerates

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6d887ecac2ed2997d579260c62ee1ce4ca5e55c5
---

 libavformat/avformat.h |    2 +-
 libavformat/utils.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index df684ca..efab990 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -726,7 +726,7 @@ typedef struct AVStream {
     /**
      * Stream information used internally by av_find_stream_info()
      */
-#define MAX_STD_TIMEBASES (60*12+5)
+#define MAX_STD_TIMEBASES (60*12+6)
     struct {
         int64_t last_dts;
         int64_t duration_gcd;
diff --git a/libavformat/utils.c b/libavformat/utils.c
index deac84a..8d82f9e 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2422,7 +2422,7 @@ static void compute_chapters_end(AVFormatContext *s)
 
 static int get_std_framerate(int i){
     if(i<60*12) return i*1001;
-    else        return ((const int[]){24,30,60,12,15})[i-60*12]*1000*12;
+    else        return ((const int[]){24,30,60,12,15,48})[i-60*12]*1000*12;
 }
 
 /*



More information about the ffmpeg-cvslog mailing list