mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-09 02:30:45 +08:00
lavr: do not try to copy to uninitialized output audio data.
This would happen at least when lavr is used as a fifo with no conversion.
This commit is contained in:
@@ -375,7 +375,8 @@ int avresample_convert(AVAudioResampleContext *avr, void **output,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return handle_buffered_output(avr, &output_buffer, current_buffer);
|
return handle_buffered_output(avr, output ? &output_buffer : NULL,
|
||||||
|
current_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
int avresample_available(AVAudioResampleContext *avr)
|
int avresample_available(AVAudioResampleContext *avr)
|
||||||
|
Reference in New Issue
Block a user