diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-12 22:08:08 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-12 22:16:48 +0400 |
commit | b8d64559d5dd5a47dc2897c82a61c02c4c5ca094 (patch) | |
tree | ccac13f23d04c3468ff630d95e99e051ed18d55f /libavformat | |
parent | 8684e396563aad7894452c59769e0c78907c97ee (diff) |
movenc: fix timescale for timecode track
regression since b02493e476
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 25dca338ae..8316c30d76 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3407,7 +3407,7 @@ static int mov_create_timecode_track(AVFormatContext *s, int index, int src_inde track->mode = mov->mode; track->tag = MKTAG('t','m','c','d'); track->src_track = src_index; - track->timescale = src_st->codec->time_base.den; + track->timescale = mov->tracks[src_index].timescale; if (tc.flags & AV_TIMECODE_FLAG_DROPFRAME) track->timecode_flags |= MOV_TIMECODE_FLAG_DROPFRAME; |