mpegvideo_enc: only allocate output packet when we know there will be output
authorAnton Khirnov <anton@khirnov.net>
Mon, 20 Feb 2012 07:01:48 +0000 (08:01 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 21 Feb 2012 21:47:01 +0000 (22:47 +0100)
commit5d42ac7ffb5471666136402a553454caf3a3c989
treec05dd44e30736d4a05f1581a92e8a78a163f0ff2
parentb38b6d56ca5a0796d9b48fdaef14c5950c3abac5
mpegvideo_enc: only allocate output packet when we know there will be output

Fixes a memleak.
libavcodec/mpegvideo_enc.c