| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: RTSP unit tests, and some bugfixes
From: Chris Conroy <Chris.Conroy_at_hillcrestlabs.com>
Date: Mon, 01 Feb 2010 15:00:03 -0500
On Fri, 2010-01-29 at 02:17 +0100, Yang Tse wrote:
Quick fix to make the code match with the RTP documentation regarding
Index: tests/libtest/lib571.c
---
> int channel = (int)data[1];
> int message_size = (int)(size * nmemb - 4);
> unsigned short coded_size = ntohs(*((unsigned short*)(&data[2])));
36a38,41
> if((unsigned short) message_size != coded_size) {
> printf("RTP embedded size (%hu) does not match the write size %
d.\n",
> coded_size, message_size);
> }
38c43
< data += 3;
---
> data += 4;
Index: lib/rtsp.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/rtsp.c,v
retrieving revision 1.6
diff -r1.6 rtsp.c
568c568
< result = rtp_client_write(conn, &rtp[1], rtp_length + 3);
---
> result = rtp_client_write(conn, &rtp[0], rtp_length + 4);
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-01
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info