lavr: make avresample_read() with NULL output discard samples.

This commit is contained in:
Anton Khirnov
2012-05-09 06:35:13 +02:00
parent b1f9be5436
commit 0982b0a431
3 changed files with 5 additions and 2 deletions

View File

@@ -274,7 +274,8 @@ int avresample_available(AVAudioResampleContext *avr);
* @see avresample_convert()
*
* @param avr audio resample context
* @param output output data pointers
* @param output output data pointers. May be NULL, in which case
* nb_samples of data is discarded from output FIFO.
* @param nb_samples number of samples to read from the FIFO
* @return the number of samples written to output
*/