[FFmpeg-devel] [PATCH 3/5] avformat/movenc: use codec_time_base

Michael Niedermayer michaelni at gmx.at
Wed Jun 18 21:35:04 CEST 2014


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavformat/movenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index bb51574..142e01a 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -922,7 +922,7 @@ static int mov_get_dv_codec_tag(AVFormatContext *s, MOVTrack *track)
 
 static AVRational find_fps(AVFormatContext *s, AVStream *st)
 {
-    AVRational rate = {st->codec->time_base.den, st->codec->time_base.num};
+    AVRational rate = {st->codec_time_base.den, st->codec_time_base.num};
     /* if the codec time base makes no sense, try to fallback on stream frame rate */
     if (av_timecode_check_frame_rate(rate) < 0) {
         av_log(s, AV_LOG_DEBUG, "timecode: tbc=%d/%d invalid, fallback on %d/%d\n",
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list