Update of /usr/cvsroot/asterisk/formats
In directory mongoose.digium.com:/tmp/cvs-serv26887/formats

Modified Files:
        format_h263.c 
Log Message:
Make sure RTP timestamps are accurate on playback


Index: format_h263.c
===================================================================
RCS file: /usr/cvsroot/asterisk/formats/format_h263.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- format_h263.c       23 Jun 2005 17:30:56 -0000      1.13
+++ format_h263.c       10 Sep 2005 18:46:38 -0000      1.14
@@ -158,8 +158,11 @@
        s->fr.samples = s->lastts;
        s->fr.datalen = len;
        s->fr.subclass |= mark;
+       s->fr.delivery.tv_sec = 0;
+       s->fr.delivery.tv_usec = 0;
        if ((res = read(s->fd, &ts, sizeof(ts))) == sizeof(ts)) {
-               s->lastts = *whennext = ntohl(ts) * 4/45;
+               s->lastts = ntohl(ts);
+               *whennext = s->lastts * 4/45;
        } else
                *whennext = 0;
        return &s->fr;

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to