[FFmpeg-trac] #4695(undetermined:new): Why is that PCM invalid?
FFmpeg
trac at avcodec.org
Fri Jul 3 09:21:32 CEST 2015
#4695: Why is that PCM invalid?
-------------------------------------+-------------------------------------
Reporter: | Owner:
michael.heuberger | Status: new
Type: defect | Component:
Priority: normal | undetermined
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by michael.heuberger):
some context: these pcm's come from the web, were initially raw webAudio
samples in Float32Array's which have been converted to 16 bit signed
integers with this JS function:
{{{
this.toBuffer = function() {
var l = float32Array.length,
arr = new Int16Array(l)
// this uses lots of CPU and should be optimized
for (var i = 0; i < l; i++) {
arr[i] = Math.min(1, float32Array[i]) * 0x7FFF
}
return toBuffer(arr)
}
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4695#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list