summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-02 16:33:02 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-02 17:16:20 +0200
commit2501f6d3d6b6e5db58ff4756baf52c69c92f096c (patch)
tree6c65d835384a85f9c833da75ee60e1fecc9a7974 /libavformat/movenc.c
parent4fb3e1a652a9395aa37456dfaa145590e8d11065 (diff)
avformat/movenc: Use the rate from av_timecode_init_from_string() for tmcd
Fixes Ticket2892 Reveiwed-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index ce0dfba857..b6c57ade88 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);