]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10890: [mod_av] Wrongly calculated delta_tmp for end of video file recording ...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 7 Dec 2017 05:20:39 +0000 (23:20 -0600)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:37 +0000 (07:21 +0000)
src/mod/applications/mod_av/avformat.c

index 04101629c4ff31508c976314477d2d0b085ed1f5..31a416d7e1042a8dedb76d8db5effa106b741829 100644 (file)
@@ -848,7 +848,7 @@ static void *SWITCH_THREAD_FUNC video_thread_run(switch_thread_t *thread, void *
                        uint64_t delta_tmp;
 
                        switch_core_timer_sync(context->eh.video_timer);
-                       delta_tmp = context->eh.video_timer->samplecount - context->eh.last_ts;
+                       delta_tmp = (context->eh.video_timer->samplecount * 90) - context->eh.last_ts;
                        
                        if (delta_tmp != 0) {
                                delta_sum += delta_tmp;