[FFmpeg-devel] [PATCH] lavf: add chromaprint muxer

Michael Niedermayer michaelni at gmx.at
Sat Oct 3 14:19:27 CEST 2015


On Fri, Oct 02, 2015 at 03:45:48PM -0500, Rodger Combs wrote:
[...]
> +        break;/*
> +    case FINGERPRINT_HASH_RAW:
> +    case FINGERPRINT_HASH_HEX:
> +        if (!chromaprint_hash_fingerprint(fp, size, &hash)) {
> +            av_log(s, AV_LOG_ERROR, "Failed to hash fingerprint\n");
> +            goto fail;
> +        }
> +        if (cpr->fp_format == FINGERPRINT_HASH_RAW) {
> +            avio_wb32(pb, hash);
> +        } else {
> +            char buf[10];
> +            snprintf(buf, sizeof(buf), "%08"PRIx32"\n", hash);
> +            avio_write(s->pb, buf, strlen(buf));
> +        }
> +        break;*/
[...]
> +/*    { "hash_raw", "32-bit binary hash", 0, AV_OPT_TYPE_CONST, {.i64 = FINGERPRINT_HASH_RAW }, INT_MIN, INT_MAX, FLAGS, "fp_format"},
> +    { "hash_hex", "32-bit hexadecimal hash", 0, AV_OPT_TYPE_CONST, {.i64 = FINGERPRINT_HASH_HEX }, INT_MIN, INT_MAX, FLAGS, "fp_format"},*/

outcommented code

also fails to build here:
CC      libavformat/chromaprint.o
libavformat/chromaprint.c: In function ‘write_header’:
libavformat/chromaprint.c:67:9: error: implicit declaration of function ‘chromaprint_set_option’ [-Werror=implicit-function-declaration]

that is with libchromaprint 0.6-1 from ubuntu 12.04 LTS

[...]
--
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151003/cd06f598/attachment.sig>


More information about the ffmpeg-devel mailing list