avformat/flvenc: check that the codec_tag fits in the available bits
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 28 Feb 2015 19:58:31 +0000 (20:58 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 28 Feb 2015 21:53:12 +0000 (22:53 +0100)
commite8565d21c276ab9ac5ce785549420321fbd0b093
treeb32d36e8bcd12f4f20febfe9319af6c9a15ea544
parent732c3ebffaff5005367d7f947fa903f3b6e92f68
avformat/flvenc: check that the codec_tag fits in the available bits

flags is later written with avio_w8 and if it doesn't fit in one byte it
triggers an av_assert2.

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