OSDN Git Service

Fix the conversion of AV_SAMPLE_FMT_FLT and _DBL to AV_SAMPLE_FMT_S32.
authorAlex Converse <aconverse@google.com>
Mon, 11 Apr 2011 06:42:29 +0000 (23:42 -0700)
committerAlex Converse <alex.converse@gmail.com>
Tue, 12 Apr 2011 04:47:53 +0000 (21:47 -0700)
commit2f072b55a49eb56b1bcffdda344f21d09981430b
treee88a09c3b91be0e290090266047a47bd3c04f184
parent187a537904ef2193a4b5e0312349f95223ff8610
Fix the conversion of AV_SAMPLE_FMT_FLT and _DBL to AV_SAMPLE_FMT_S32.

(1<<31) is undefined and seems to be evaluated by gcc to -2^31 when
these formulae require 2^31.

These conversions still need fate tests.
libavcodec/audioconvert.c