Commit b8d64559 authored by Michael Niedermayer's avatar Michael Niedermayer

movenc: fix timescale for timecode track

regression since b02493e4Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8684e396
...@@ -3407,7 +3407,7 @@ static int mov_create_timecode_track(AVFormatContext *s, int index, int src_inde ...@@ -3407,7 +3407,7 @@ static int mov_create_timecode_track(AVFormatContext *s, int index, int src_inde
track->mode = mov->mode; track->mode = mov->mode;
track->tag = MKTAG('t','m','c','d'); track->tag = MKTAG('t','m','c','d');
track->src_track = src_index; 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) if (tc.flags & AV_TIMECODE_FLAG_DROPFRAME)
track->timecode_flags |= MOV_TIMECODE_FLAG_DROPFRAME; track->timecode_flags |= MOV_TIMECODE_FLAG_DROPFRAME;
......
fcbe7806047914d9751fd9053009df69 *./tests/data/lavf/lavf.mov fcbe7806047914d9751fd9053009df69 *./tests/data/lavf/lavf.mov
367365 ./tests/data/lavf/lavf.mov 367365 ./tests/data/lavf/lavf.mov
./tests/data/lavf/lavf.mov CRC=0xb2f59ab4 ./tests/data/lavf/lavf.mov CRC=0xb2f59ab4
d3a85fc24ddd07e354645450073a30e3 *./tests/data/lavf/lavf.mov d023fdd2149f75ef231180b6b0b0a988 *./tests/data/lavf/lavf.mov
358455 ./tests/data/lavf/lavf.mov 358455 ./tests/data/lavf/lavf.mov
./tests/data/lavf/lavf.mov CRC=0xb2f59ab4 ./tests/data/lavf/lavf.mov CRC=0xb2f59ab4
cbc587335946df1f08d838f48ef396f0 *./tests/data/lavf/lavf.mov cbc587335946df1f08d838f48ef396f0 *./tests/data/lavf/lavf.mov
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment