avcodec/wmalosslessdec: Reset num_saved_bits on error path
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 10 Mar 2018 23:13:57 +0000 (00:13 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 9 Jul 2018 23:18:52 +0000 (01:18 +0200)
commit1c0914e4f34edb02a242d58d3929fdd07a59f211
tree7ba4f50c2da003579b869c26691894bc3726c18d
parent5770793dec3af51a513174c87aad95b44a7e00e0
avcodec/wmalosslessdec: Reset num_saved_bits on error path

Fixes: NULL pointer dereference
Fixes: poc-201803.wav
Found-by: GwanYeong Kim <gy741.kim@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 64c9ce0abc0fd8774b523afda3ddb17c86caa86a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wmalosslessdec.c