[FFmpeg-devel] [PATCH] avformat/movenc: Use the rate from av_timecode_init_from_string() for tmcd
Michael Niedermayer
michaelni at gmx.at
Mon Sep 2 16:52:59 CEST 2013
Fixes Ticket2892
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 ce0dfba..b6c57ad 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3508,7 +3508,7 @@ static int mov_create_timecode_track(AVFormatContext *s, int index, int src_inde
track->enc = avcodec_alloc_context3(NULL);
track->enc->codec_type = AVMEDIA_TYPE_DATA;
track->enc->codec_tag = track->tag;
- track->enc->time_base = src_st->codec->time_base;
+ track->enc->time_base = av_inv_q(rate);
/* the tmcd track just contains one packet with the frame number */
pkt.data = av_malloc(pkt.size);
--
1.7.9.5
More information about the ffmpeg-devel
mailing list