Message ID | 1647272174-29686-1-git-send-email-lance.lmwang@gmail.com |
---|---|
State | Accepted |
Commit | fc8a6a6f4cc3d9b5ca278d181bba97297dd8ee6a |
Headers | show |
Series | [FFmpeg-devel,v2,1/2] avformat/movenc: initialize pts/dts of timecode packet | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index ee1629d..436ceb8 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -6356,6 +6356,7 @@ static int mov_create_timecode_track(AVFormatContext *s, int index, int src_inde pkt->data = data; pkt->stream_index = index; pkt->flags = AV_PKT_FLAG_KEY; + pkt->pts = pkt->dts = av_rescale_q(tc.start, av_inv_q(rate), (AVRational){1,mov->movie_timescale}); pkt->size = 4; AV_WB32(pkt->data, tc.start); ret = ff_mov_write_packet(s, pkt);