Fix segfault in save_bits:
authorSascha Sommer <saschasommer@freenet.de>
Sat, 24 Sep 2011 18:56:41 +0000 (20:56 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 27 Sep 2011 01:06:04 +0000 (03:06 +0200)
commit9960710b872e2d1c7d9d8730c4b6ca2c2cdf183e
tree3e4020cbbb09cd8e81dd2190936df9b7a468182c
parentb00fc80d406fef0acd54619a7c82e2a31e00c06c
Fix segfault in save_bits:
use put_bits_count to get the buffer fill state instead of
num_saved_bits as num_saved_bits is sometimes reset when
frames are lost
(Ticket 495)
(cherry picked from commit 780d45473c32fa356c8ce385c3ea4692567c3228)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4f6187c7356111540024901932294e9807061dd0)
libavcodec/wmaprodec.c