mirror of https://git.ffmpeg.org/ffmpeg.git
swr: fill_audio_data() support NULL
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3d2515a8f3
commit
186be49fd5
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue