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, 1 Apr 2012 16:33:28 +0000 (18:33 +0200)
commit58133bb010c1587515ab4a8bf990760ca28b4dda
treef819a438714f917a36ae19e3443b30a92155c17b
parent43e3e7764c498138c28507c5a7dfcd08c0748633
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