Commit 186be49f authored by Michael Niedermayer's avatar Michael Niedermayer

swr: fill_audio_data() support NULL

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3d2515a8
......@@ -372,7 +372,9 @@ static void copy(AudioData *out, AudioData *in,
static void fill_audiodata(AudioData *out, uint8_t *in_arg [SWR_CH_MAX]){
int i;
if(out->planar){
if(!in_arg){
memset(out->ch, 0, sizeof(out->ch));
}else if(out->planar){
for(i=0; i<out->ch_count; i++)
out->ch[i]= in_arg[i];
}else{
......
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