mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avfilter: fix regression since addition of extended_data to audio
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
70e9308dec
commit
ad6f006081
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user