From: Russell Bryant Date: Tue, 30 Jan 2007 00:15:06 +0000 (+0000) Subject: Fix the extraction of the timestamp from video frames. It was using the X-Git-Tag: 1.2.15~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d12e45f0639249674228a5fddd7e6d635a93aff;p=thirdparty%2Fasterisk.git Fix the extraction of the timestamp from video frames. It was using the mapping for a mini-frame instead of a video-frame, which caused it to get invalid data. (issue #8795, mihai) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@52762 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 06c941c839..76592002aa 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -7665,10 +7665,10 @@ retryowner2: f.data = NULL; #ifdef IAXTESTS if (test_resync) { - fr->ts = (iaxs[fr->callno]->last & 0xFFFF8000L) | ((ntohs(mh->ts) + test_resync) & 0x7fff); + fr->ts = (iaxs[fr->callno]->last & 0xFFFF8000L) | ((ntohs(vh->ts) + test_resync) & 0x7fff); } else #endif /* IAXTESTS */ - fr->ts = (iaxs[fr->callno]->last & 0xFFFF8000L) | (ntohs(mh->ts) & 0x7fff); + fr->ts = (iaxs[fr->callno]->last & 0xFFFF8000L) | (ntohs(vh->ts) & 0x7fff); } else { /* A mini frame */ f.frametype = AST_FRAME_VOICE;