latmenc: error out when packet size is too large.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 10 Apr 2012 19:11:50 +0000 (21:11 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 11 Apr 2012 20:28:34 +0000 (22:28 +0200)
commit8e357e8e759b36e5609ccd12a9e324aee0e8afc8
treeee6ea4bdd6e51d2740511bbcfd6f109b620e6c21
parenta736eb4a605f46d5ff96c7b32e55710ecd9cce89
latmenc: error out when packet size is too large.

Previously it would just silently write out incorrect data.
This also fixes a potential integer overflow in the allocation.

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