OSDN Git Service

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 22:00:55 +0000 (23:00 +0100)
commit86c024ea9e65f9c4c0b01f02712f4fd7313371e7
tree63d10f2d340f3a03ab0556e6c6499feca26afb78
parent0b0a8cd133c711e6d74a57a3fa1d8eaa28b74ce8
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