You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mxf: honor timecode drop flag in mxf muxer if set.
This commit is contained in:
committed by
Clément Bœsch
parent
b33ca05b46
commit
b49fe589ea
@@ -1566,7 +1566,10 @@ static void mxf_write_system_item(AVFormatContext *s)
|
|||||||
avio_wb64(pb, 0); // creation date/time stamp
|
avio_wb64(pb, 0); // creation date/time stamp
|
||||||
|
|
||||||
avio_w8(pb, 0x81); // SMPTE 12M time code
|
avio_w8(pb, 0x81); // SMPTE 12M time code
|
||||||
time_code = ff_framenum_to_smtpe_timecode(frame, mxf->timecode_base,
|
time_code = frame;
|
||||||
|
if (mxf->tc.drop)
|
||||||
|
time_code = ff_framenum_to_drop_timecode(time_code);
|
||||||
|
time_code = ff_framenum_to_smtpe_timecode(time_code, mxf->timecode_base,
|
||||||
mxf->tc.drop);
|
mxf->tc.drop);
|
||||||
avio_wb32(pb, time_code);
|
avio_wb32(pb, time_code);
|
||||||
avio_wb32(pb, 0); // binary group data
|
avio_wb32(pb, 0); // binary group data
|
||||||
|
Reference in New Issue
Block a user