mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-13 14:13:32 +02:00
Don't invert 24 or 32 bit PCM files when reimported via FFmpeg libs
This commit is contained in:
committed by
James Crook
parent
b66675d71c
commit
a3d20c846a
@@ -765,7 +765,7 @@ int FFmpegImportFileHandle::WriteData(streamContext *sc)
|
||||
|
||||
case AV_SAMPLE_FMT_S32:
|
||||
case AV_SAMPLE_FMT_S32P:
|
||||
((float *)tmp[chn])[index] = (float) *(int32_t *)in * (1.0 / (1 << 31));
|
||||
((float *)tmp[chn])[index] = (float) *(int32_t *)in * (1.0 / (1u << 31));
|
||||
break;
|
||||
|
||||
case AV_SAMPLE_FMT_FLT:
|
||||
|
Reference in New Issue
Block a user