]> git.alsa-project.org Git - tinycompress.git/commit
cplay: fix size and nmemb of mp3 header of fread
authorKatsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Tue, 23 Jan 2018 02:33:11 +0000 (11:33 +0900)
committerVinod Koul <vinod.koul@intel.com>
Thu, 1 Feb 2018 10:53:12 +0000 (16:23 +0530)
commitc35b0dfd4aff59e7aba00afc678051f0d6f836d5
treeee4025b78dabf566b42322f9add8c15eda00f76c
parent1fe3a37bef29597349152dd1bd1ddaf0145e4f4e
cplay: fix size and nmemb of mp3 header of fread

This patch swaps 'size' and 'nmemb' arguments of fread.
The fread returns always 1 (because 'nmemb' is 1) so checking
the return value is always failure.

Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
src/utils/cplay.c