a zero duration will lead to a non-monotonic non-incrementing pts, so we have to use 1 instead.
parent
161fc94496
commit
371f5dbc00
|
@ -722,7 +722,7 @@ int VideoStore::writeVideoFramePacket(AVPacket *ipkt) {
|
||||||
ipkt->pts,
|
ipkt->pts,
|
||||||
video_last_pts,
|
video_last_pts,
|
||||||
duration);
|
duration);
|
||||||
if (duration < 0) {
|
if (duration <= 0) {
|
||||||
duration = ipkt->duration ? ipkt->duration : av_rescale_q(1,video_in_stream->time_base, video_out_stream->time_base);
|
duration = ipkt->duration ? ipkt->duration : av_rescale_q(1,video_in_stream->time_base, video_out_stream->time_base);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue