a zero duration will lead to a non-monotonic non-incrementing pts, so we have to use 1 instead.

This commit is contained in:
Isaac Connor 2018-04-25 09:37:04 -04:00
parent 161fc94496
commit 371f5dbc00
1 changed files with 1 additions and 1 deletions

View File

@ -722,7 +722,7 @@ int VideoStore::writeVideoFramePacket(AVPacket *ipkt) {
ipkt->pts,
video_last_pts,
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);
}
}