]> git.sesse.net Git - ffmpeg/commit
avformat/chromaprint: Fix writing raw fingerprint
authorAndriy Gelman <andriy.gelman@gmail.com>
Sun, 6 Oct 2019 05:49:49 +0000 (01:49 -0400)
committerGyan Doshi <ffmpeg@gyani.pro>
Wed, 16 Oct 2019 05:04:51 +0000 (10:34 +0530)
commite14f5fd0a6983838b5fe3c6ad1c2ec2f2d8e49df
treee51369c976cccb414ab8bed0e0c3b00a01e4b230
parent29dac2927f5fa0b1f5c6b27a3ed32f2968ea9b00
avformat/chromaprint: Fix writing raw fingerprint

The pointer fp after the call to chromaprint_get_raw_fingerpoint() points to an array
of uint32_t whereas the current code assumed just a char stream. Thus when writing the
raw fingerprint, the output would be truncated by a factor of 4.

For reference the declaration of the function from chromaprint.h is:
int chromaprint_get_raw_fingerprint(ChromaprintContext *ctx, uint32_t **fingerprint, int *size);
libavformat/chromaprint.c