Fix a buffer overflow in libx264 interface to x264 encoder. Previous code ignored...
authorMike Scheutzow <mike.scheutzow@alcatel-lucent.com>
Mon, 26 Sep 2011 14:57:53 +0000 (10:57 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 1 Oct 2011 18:32:25 +0000 (20:32 +0200)
commit7e362df304121003fda7705917d5e797b48a0920
tree9434da2a618ce71f11c7a1cf23651b9304422897
parentbe1ae17ec0e03b494e0ab9f1eedefe83cebd7f4e
Fix a buffer overflow in libx264 interface to x264 encoder. Previous code ignored the compressed buffer size passed in. This change returns as many complete NALs as can fit in the buffer, and logs an error message.

Signed-off-by: Mike Scheutzow <mike.scheutzow@alcatel-lucent.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e2dae1faa84ada5746ac2114de7eb68abd824131)
libavcodec/libx264.c