[FFmpeg-trac] #5997(undetermined:new): Doesn't build with chromaprint 1.4

FFmpeg trac at avcodec.org
Tue Dec 6 10:11:27 EET 2016


#5997: Doesn't build with chromaprint 1.4
-------------------------------------+-------------------------------------
               Reporter:  marillat   |                  Owner:
                   Type:  defect     |                 Status:  new
               Priority:  normal     |              Component:
                Version:  git-       |  undetermined
  master                             |               Keywords:
             Blocked By:             |               Blocking:
Reproduced by developer:  0          |  Analyzed by developer:  0
-------------------------------------+-------------------------------------
 Build is i386 Debian unstable

 {{{
 CC      libavformat/chromaprint.o
 libavformat/chromaprint.c:42:24: error: field ‘ctx’ has incomplete type
      ChromaprintContext ctx;
                         ^~~
 libavformat/chromaprint.c: In function ‘write_packet’:
 libavformat/chromaprint.c:112:39: warning: passing argument 2 of
 ‘chromaprint_feed’ from incompatible pointer type [-Wincompatible-pointer-
 types]
      return chromaprint_feed(cpr->ctx, pkt->data, pkt->size / 2) ? 0 :
 AVERROR(EINVAL);
                                        ^~~
 In file included from libavformat/chromaprint.c:25:0:
 /usr/include/chromaprint.h:235:21: note: expected ‘const int16_t * {aka
 const short int *}’ but argument is of type ‘uint8_t * {aka unsigned char
 *}’
  CHROMAPRINT_API int chromaprint_feed(ChromaprintContext *ctx, const
 int16_t *data, int size);
                      ^~~~~~~~~~~~~~~~
 libavformat/chromaprint.c: In function ‘write_trailer’:
 libavformat/chromaprint.c:127:52: warning: passing argument 2 of
 ‘chromaprint_get_raw_fingerprint’ from incompatible pointer type
 [-Wincompatible-pointer-types]
      if (!chromaprint_get_raw_fingerprint(cpr->ctx, &fp, &size)) {
                                                     ^
 In file included from libavformat/chromaprint.c:25:0:
 /usr/include/chromaprint.h:273:21: note: expected ‘uint32_t ** {aka
 unsigned int **}’ but argument is of type ‘void **’
  CHROMAPRINT_API int chromaprint_get_raw_fingerprint(ChromaprintContext
 *ctx, uint32_t **fingerprint, int *size);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 libavformat/chromaprint.c:138:71: warning: passing argument 4 of
 ‘chromaprint_encode_fingerprint’ from incompatible pointer type
 [-Wincompatible-pointer-types]
          if (!chromaprint_encode_fingerprint(fp, size, cpr->algorithm,
 &enc_fp, &enc_size,
                                                                        ^
 In file included from libavformat/chromaprint.c:25:0:
 /usr/include/chromaprint.h:331:21: note: expected ‘char **’ but argument
 is of type ‘void **’
  CHROMAPRINT_API int chromaprint_encode_fingerprint(const uint32_t *fp,
 int size, int algorithm, char **encoded_fp, int *encoded_size, int
 base64);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 libavformat/chromaprint.c: In function ‘write_packet’:
 libavformat/chromaprint.c:113:1: error: control reaches end of non-void
 function [-Werror=return-type]
  }
  ^
 cc1: some warnings being treated as errors
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5997>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list