fix duration if it's negative

pull/2077/head
Isaac Connor 2017-08-21 10:15:56 -04:00
parent a63d0878b6
commit cf8560b648
1 changed files with 0 additions and 1 deletions

View File

@ -650,7 +650,6 @@ int VideoStore::writeVideoFramePacket( AVPacket *ipkt ) {
duration = av_rescale_q( ipkt->pts - video_last_pts, video_input_stream->time_base, video_output_stream->time_base);
Debug(1, "duration calc: pts(%d) - last_pts(%d) = (%d)", ipkt->pts, video_last_pts, duration );
if ( duration < 0 ) {
duration = ipkt->duration;
}
}