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>
Fri, 13 Mar 2015 16:06:09 +0000 (17:06 +0100)
commitc80c0b2637d83a4066cec38f2d2c00c0cff2a1ff
treeb86a33af55ba65111ee032fc5cbe77d854eabfba
parent190e8b42834cb7a8af12db25b0f5c8b63abf99a5
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>
(cherry picked from commit e8565d21c276ab9ac5ce785549420321fbd0b093)

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