lavf/mp3enc: make sure the header is valid before writing audio pkt.
authorClément Bœsch <clement.boesch@smartjog.com>
Fri, 16 Nov 2012 08:21:17 +0000 (10:21 +0200)
committerClément Bœsch <ubitux@gmail.com>
Fri, 16 Nov 2012 13:11:08 +0000 (14:11 +0100)
commit2dd0da787ce5008d4d1b8f461fbd1288c32e2c38
treeb37a729ceee36c0973683d4588d87b171d8f877f
parentff3b59c848b62ca926be676fe8f31765fe34d66f
lavf/mp3enc: make sure the header is valid before writing audio pkt.

An invalid header can lead avpriv_mpegaudio_decode_header() to overread
and/or div by zero.
libavformat/mp3enc.c