matroskadec: check audio sample rate
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 15 Jun 2015 18:59:22 +0000 (20:59 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 16 Jun 2015 19:45:45 +0000 (21:45 +0200)
commit5b76c82fd7a5f4f36bb901b8c43d7f7319599599
tree5aac6f119a71b80d2d369be7c24c27b177fe85b2
parente0dac40306928bf544a34f4054504654e8f374d0
matroskadec: check audio sample rate

And default to 8000 if it is invalid.

An invalid sample rate can trigger av_assert2 in av_rescale_rnd.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/matroskadec.c