matroskadec: validate audio channels and bitdepth
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 15 Jun 2015 19:06:51 +0000 (21:06 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 16 Jun 2015 19:46:04 +0000 (21:46 +0200)
commit92e79a2f7bf2f8bb0cb2d1a3e4d76737557071c4
treed70751536acb5dedf3a79353bcdfbeaaa355ed15
parent5b76c82fd7a5f4f36bb901b8c43d7f7319599599
matroskadec: validate audio channels and bitdepth

In the TTA extradata re-construction the values are written with
avio_wl16 and if they don't fit into uint16_t, this triggers an
av_assert2 in avio_w8.

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