OSDN Git Service

wmaenc: fix m/s stereo encoding for the first frame
authorJustin Ruggles <justin.ruggles@gmail.com>
Fri, 2 Mar 2012 22:11:25 +0000 (17:11 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 3 Mar 2012 23:20:10 +0000 (18:20 -0500)
commit51ddf35c9017018e58c15275ff5b129647a0c94d
treed03df73ed8173b9ee1e76d26e75977e9978fb260
parent8ed7488ea39a4ab60045e679ad5efa6a7b81ed98
wmaenc: fix m/s stereo encoding for the first frame

We need to set ms_stereo in encode_init() in order to avoid incorrectly
encoding the first frame as non-m/s while flagging it as m/s. Fixes an
uncomfortable pop in the left channel at the start of playback.

CC:libav-stable@libav.org
libavcodec/wmaenc.c
tests/ref/acodec/wmav1
tests/ref/acodec/wmav2