wmalosslessdec: reset frame->nb_samples on packet loss
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 2 Jul 2015 22:02:44 +0000 (00:02 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 Jul 2015 02:43:41 +0000 (04:43 +0200)
commit6d6ca8b82e344ccd59d7236d44feace730c62564
tree76201caa3267643ef0bd78b88343525e2db6d70b
parent1ca226989c31c49a7d96ba834679dc26d9b4083a
wmalosslessdec: reset frame->nb_samples on packet loss

Otherwise a frame with non-zero nb_samples but without any data can be
returned.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 42e7a5b3c704985c2c18970cc94a837b413df9d9)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wmalosslessdec.c