[FFmpeg-devel] Realmedia patch

Ronald S. Bultje rsbultje
Mon Aug 25 03:55:53 CEST 2008


Hi Michael,

On Thu, Aug 21, 2008 at 12:05 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Mon, Aug 18, 2008 at 10:21:35AM -0400, Ronald S. Bultje wrote:
[..]
>> +    hex_table[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
>> +        '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
[..]
>> +    /* convert zres to ascii string */
>> +    for (i = 0; i < 16; i++) {
>> +        response[i * 2]     = hex_table[zres[i] >> 4];
>> +        response[i * 2 + 1] = hex_table[zres[i] & 0xf];
>> +    }
>
> grep hex */*.c shows that there are several existing data->hex converters
> thus this is duplicate

Attached patch exports the existing one in sdp.c into utils.c with
declaration in avformat.h.

Ronald
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sdp-export-data_to_hex.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080824/52a7e70c/attachment.asc>



More information about the ffmpeg-devel mailing list