mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
Block a user