天天看點

ffmpeg windows 雪花聲解決方法

替換所有檔案裡的<math.h>為<mathimf.h>即可。

我用ffmpeg-0.6.3版測試時,好像mathimf.h檔案和其他檔案有沖突,需要修改源碼。

和qdm2.c檔案中的 QDM2Complex *complex;聲明相沖突,修改為QDM2Complex *complex1;即可。

和g726.c檔案中的static int16_t g726_decode(G726Context* c, int I)中的I沖突,修改為I1即可。

修改完變量聲明,同時需修改相關代碼,改完音頻就完美了。

mathimf.h檔案是intel c compiler自帶的頭檔案。

繼續閱讀