Winter Knight <[EMAIL PROTECTED]> added the comment:

It appears that this bug tracker does not actually allow file uploads. When I
attempt to use the "File" field, it gives an error message. So, here is the
source for that program I mentioned:
--- begin
#include <stdio.h>
#include <string.h>
#include <ffmpeg/md5.h>

int main(int argc, char ** argv)
{
        int i;
        uint8_t md5_119[16];
        uint8_t md5_120[16];
        char hex_output[33];

        char * str119 = "Simple string. Simple string. Simple string. Simple 
string.
Simple string. Simple string. Simple string. Simple string.";
        char * str120 = "Simple string. Simple string. Simple string. Simple 
string.
Simple string. Simple string. Simple string. Simple string.x";

        /* This allows you to output the strings to stdout, instead of 
checksumming them,
         * so that you can run the strings through an alternate md5sum, such as 
gnu
md5sum */
        if (argc == 2) {
                if (!strcmp(argv[1], "119")) {
                        printf(str119);
                        return 0;
                } else if (!strcmp(argv[1], "120")) {
                        printf(str120);
                        return 0;
                }
        }               

        av_md5_sum(md5_119, str119, strlen(str119));
        av_md5_sum(md5_120, str120, strlen(str120));

        for (i = 0; i < 16; ++i)
                sprintf(hex_output + i * 2, "%02x", md5_119[i]);
        hex_output[32] = 0;
        printf("hex_output: %s  strlen: %d\n", hex_output, strlen(str119));

        for (i = 0; i < 16; ++i)
                sprintf(hex_output + i * 2, "%02x", md5_120[i]);
        hex_output[32] = 0;
        printf("hex_output: %s  strlen: %d\n", hex_output, strlen(str120));

        return 0;
}
--- end

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue634>
______________________________________________________

Reply via email to