diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-04-16 14:01:26 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-05-09 17:47:53 +0200 |
commit | 9453c9e1dec6ba44a6bedbfc02b72433e89c03dd (patch) | |
tree | ec931deb2f998808fdfab72c9c8bebf82ea91fbb /libavfilter/defaults.c | |
parent | c22953b8a3abc1ddd02e2f468845dc2bf0e45253 (diff) | |
download | ffmpeg-9453c9e1dec6ba44a6bedbfc02b72433e89c03dd.tar.gz |
lavfi: add extended_data to AVFilterBuffer.
This is similar to what has previously been done in AVFrame to allow
dealing with more than 8 channels.
Diffstat (limited to 'libavfilter/defaults.c')
-rw-r--r-- | libavfilter/defaults.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c index 6d9003de37..086fcc0b4c 100644 --- a/libavfilter/defaults.c +++ b/libavfilter/defaults.c @@ -28,6 +28,8 @@ /* TODO: buffer pool. see comment for avfilter_default_get_video_buffer() */ void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr) { + if (ptr->extended_data != ptr->data) + av_freep(&ptr->extended_data); av_free(ptr->data[0]); av_free(ptr); } |