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)
committerReinhard Tartler <siretart@tauware.de>
Sun, 4 Mar 2012 20:26:29 +0000 (21:26 +0100)
commit1128b10247739900174991b4e013429a1b8ceaa4
tree254696e0bd1a684fd581ac55c9f77b7241d2cbb1
parent6a073aa7a734d4fbad77071e9f8ee0fe75a17fae
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
(cherry picked from commit 51ddf35c9017018e58c15275ff5b129647a0c94d)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/wmaenc.c
tests/ref/acodec/wmav1
tests/ref/acodec/wmav2