OSDN Git Service

avcodec_encode_{audio,video}: only reallocate output packet when it has non-zero...
authorAnton Khirnov <anton@khirnov.net>
Tue, 27 Mar 2012 06:21:02 +0000 (08:21 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 28 Mar 2012 07:28:47 +0000 (09:28 +0200)
commit3c6607eb6f946ed3e108db3f0694cab7e5a5df7e
tree64d66ba25109f411c41dd4e769ea5e4fc27942ee
parente2e165c00fa0dd45d2fa9a0863190f112accd387
avcodec_encode_{audio,video}: only reallocate output packet when it has non-zero size.

Otherwise realloc would free it, which would result in double free
later.
libavcodec/utils.c