[FFmpeg-devel] Realmedia patch
Benoit Fouet
benoit.fouet
Thu Aug 28 09:00:07 CEST 2008
Benoit Fouet wrote:
> Ronald S. Bultje wrote:
>
>> Index: ffmpeg-svn/libavformat/utils.c
>> ===================================================================
>> --- ffmpeg-svn.orig/libavformat/utils.c 2008-08-26 20:28:38.000000000 -0400
>> +++ ffmpeg-svn/libavformat/utils.c 2008-08-27 16:02:47.000000000 -0400
>> @@ -19,6 +19,7 @@
>> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
>> */
>> #include "avformat.h"
>> +#include "internal.h"
>> #include "libavcodec/opt.h"
>> #include "libavutil/avstring.h"
>> #include "riff.h"
>> @@ -3206,6 +3207,27 @@
>> }
>> }
>>
>> +static void digit_to_char(char *dst, uint8_t src)
>> +{
>> + if (src < 10) {
>> + *dst = '0' + src;
>> + } else {
>> + *dst = 'A' + src - 10;
>> + }
>> +}
>> +
>> +char *ff_data_to_hex(char *buff, const uint8_t *src, int s)
>> +{
>> + int i;
>> +
>> + for(i = 0; i < s; i++) {
>> + digit_to_char(buff + 2 * i, src[i] >> 4);
>> + digit_to_char(buff + 2 * i + 1, src[i] & 0xF);
>>
>>
>
> could be vertically aligned
>
>
of course, forget this point...
--
Benoit Fouet
Purple Labs S.A.
www.purplelabs.com
More information about the ffmpeg-devel
mailing list