From 15e69fc8174c13049030b443981cb4d97a85a001 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 5 Apr 2017 10:39:38 -0400 Subject: [PATCH] fix . to -> --- src/zm_videostore.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index 3dcce02e4..b4d2ef741 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -598,16 +598,16 @@ int VideoStore::writeVideoFramePacket( AVPacket *ipkt ) { ); video_last_dts = video_input_stream->cur_dts; } else { - if ( ipkt.dts < video_last_dts ) { + if ( ipkt->dts < video_last_dts ) { Debug(1, "Resetting video_last_dts from (%d) to (%d)", video_last_dts, ipkt->dts ); - opkt.dts = previous_dts + av_rescale_q( ipkt.dts, video_input_stream->time_base, video_output_stream->time_base); + opkt.dts = previous_dts + av_rescale_q( ipkt->dts, video_input_stream->time_base, video_output_stream->time_base); } else { - opkt.dts = previous_dts + av_rescale_q( ipkt.dts - video_last_dts, video_input_stream->time_base, video_output_stream->time_base); + opkt.dts = previous_dts + av_rescale_q( ipkt->dts - video_last_dts, video_input_stream->time_base, video_output_stream->time_base); } Debug(3, "opkt.dts = %d from ipkt.dts(%d) - previus_dts(%d)", - opkt.dts, ipkt.dts, video_last_dts + opkt.dts, ipkt->dts, video_last_dts ); - video_last_dts = ipkt.dts; + video_last_dts = ipkt->dts; } } if ( opkt.dts > opkt.pts ) {