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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit02bf1c617cdd34a80a290963c23f92a7e01630dc
tree4f6b084587d2909e904e6d7116f3b392e43be98a
parentedfe9ae63b191ea435f23628904094fdba3f1364
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