diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index 9c6d1ca21..3209ceab9 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -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); } }