OSDN Git Service

lavc: remove stats_out from the options table.
authorAnton Khirnov <anton@khirnov.net>
Fri, 19 Oct 2012 18:39:27 +0000 (20:39 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 22 Oct 2012 12:44:07 +0000 (14:44 +0200)
commitb691135d0c6a2b1cca91adadaf457c2989c6a55d
tree93558765e3cf8b0c67b9142e7c2872d8269cf3a0
parent6173a8fe5d2c0dd490b102101ae5e283d41dfe87
lavc: remove stats_out from the options table.

Since it is declared as a string AVOption, the generic freeing code
attempts to free it on codec close. Some codecs might have already freed
it elsewhere (or didn't even allocate it with av_malloc() in the first
place), so this might lead to an invalid free.

There is no point in having this field accessible as an AVOption, so
remove it from the options table.

Fixes Bug 380.

CC: libav-stable@libav.org
libavcodec/options_table.h