Commit ad6f0060 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter: fix regression since addition of extended_data to audio

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 70e9308d
...@@ -78,7 +78,7 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask) ...@@ -78,7 +78,7 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask)
} }
*ret->audio = *ref->audio; *ret->audio = *ref->audio;
if (ref->extended_data != ref->data) { if (ref->extended_data && ref->extended_data != ref->data) {
int nb_channels = av_get_channel_layout_nb_channels(ref->audio->channel_layout); int nb_channels = av_get_channel_layout_nb_channels(ref->audio->channel_layout);
if (!(ret->extended_data = av_malloc(sizeof(*ret->extended_data) * if (!(ret->extended_data = av_malloc(sizeof(*ret->extended_data) *
nb_channels))) { nb_channels))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment