diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-08-13 12:42:27 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2020-04-05 22:47:21 +0200 |
commit | 8defd0ca7b4ac6658e6beb9dcdc0183b2d3e53d8 (patch) | |
tree | 5da4f61e4562682e4d902677a9f4c019a949b8d3 /libavformat/chromaprint.c | |
parent | da44bbefaabeb2fdb58a03fe533a44aa150486fc (diff) | |
download | ffmpeg-8defd0ca7b4ac6658e6beb9dcdc0183b2d3e53d8.tar.gz |
lavf/chromaprint: Silence compilation warnings
Fixes the following warnings:
libavformat/chromaprint.c:117:42: warning: passing argument 2 of ‘chromaprint_feed’ from incompatible pointer type
libavformat/chromaprint.c:132:52: warning: passing argument 2 of ‘chromaprint_get_raw_fingerprint’ from incompatible pointer type
libavformat/chromaprint.c:143:71: warning: passing argument 4 of ‘chromaprint_encode_fingerprint’ from incompatible pointer type
Diffstat (limited to 'libavformat/chromaprint.c')
-rw-r--r-- | libavformat/chromaprint.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/chromaprint.c b/libavformat/chromaprint.c index faa92ca0db..0cd7cdeb26 100644 --- a/libavformat/chromaprint.c +++ b/libavformat/chromaprint.c @@ -114,14 +114,15 @@ fail: static int write_packet(AVFormatContext *s, AVPacket *pkt) { ChromaprintMuxContext *cpr = s->priv_data; - return chromaprint_feed(cpr->ctx, pkt->data, pkt->size / 2) ? 0 : AVERROR(EINVAL); + return chromaprint_feed(cpr->ctx, (const int16_t *)pkt->data, pkt->size / 2) ? 0 : AVERROR(EINVAL); } static int write_trailer(AVFormatContext *s) { ChromaprintMuxContext *cpr = s->priv_data; AVIOContext *pb = s->pb; - void *fp = NULL, *enc_fp = NULL; + void *fp = NULL; + char *enc_fp = NULL; int size, enc_size, ret = AVERROR(EINVAL); if (!chromaprint_finish(cpr->ctx)) { @@ -129,7 +130,7 @@ static int write_trailer(AVFormatContext *s) goto fail; } - if (!chromaprint_get_raw_fingerprint(cpr->ctx, &fp, &size)) { + if (!chromaprint_get_raw_fingerprint(cpr->ctx, (uint32_t **)&fp, &size)) { av_log(s, AV_LOG_ERROR, "Failed to retrieve fingerprint\n"); goto fail; } |