[FFmpeg-devel] Realmedia patch

Luca Abeni lucabe72
Tue Aug 26 11:26:19 CEST 2008


Hi,

Michael Niedermayer wrote:
[...]
>> Index: ffmpeg-svn/libavformat/rtp_internal.h
>> ===================================================================
>> --- ffmpeg-svn.orig/libavformat/rtp_internal.h	2008-08-24 21:34:30.000000000 -0400
>> +++ ffmpeg-svn/libavformat/rtp_internal.h	2008-08-24 21:57:39.000000000 -0400
>> @@ -146,5 +146,20 @@
>>  
>>  void av_register_rtp_dynamic_payload_handlers(void);
>>  
>> +/**
>> + * Calculate the response (RealChallenge2 in the RTSP header) to the
>> + * challenge (RealChallenge1 in the RTSP header from the Real/Helix
>> + * server), which is used as some sort of client validation.
>> + *
>> + * @param response pointer to response buffer, it should be at least 41 bytes
>> + *                 (40 data + 1 zero) bytes long.
>> + * @param chksum pointer to buffer containing a checksum of the response,
>> + *               it should be at least 9 (8 data + 1 zero) bytes long.
>> + * @param challenge pointer to the RealChallenge1 value provided by the
>> + *                  server.
>> + */
> 
>> +void ff_rdt_calc_response_and_checksum(char *response, char *chksum,
>> +                                       const char *challenge);
> 
> the array sizes are missing

BTW, I also believe that this does not belong to rtp_internal.h (probably,
an rdt.h file should be created).


				Luca




More information about the ffmpeg-devel mailing list