avfilter: fix regression since addition of extended_data to audio
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 12 May 2012 21:46:43 +0000 (23:46 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 12 May 2012 21:46:43 +0000 (23:46 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/avfilter.c

index 073b259..4354f8c 100644 (file)
@@ -78,7 +78,7 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask)
         }
         *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);
             if (!(ret->extended_data = av_malloc(sizeof(*ret->extended_data) *
                                                  nb_channels))) {