latmenc: validate extradata size.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 10 Apr 2012 19:49:46 +0000 (21:49 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Thu, 12 Apr 2012 18:29:56 +0000 (20:29 +0200)
commitd1a58afb95f68c5375b4a7556317d835108509ed
tree0e930bb1254cc1d8a16cc4b38a3a8167d1390064
parent9540476ba101874f7366e22ac24cdbde23d95968
latmenc: validate extradata size.

Fixes potential out-of-bounds writes.
This is mostly possible when muxing ALS files where from
an extradata size of about 1050 put_bits would write data
outside the buffer.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavformat/latmenc.c