diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-10-03 07:54:45 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-10-04 08:05:21 +0200 |
commit | cd15b7c03d8df29d4c69b0620cf27d4a8c9dfb65 (patch) | |
tree | e006be6e1ee440f067af8b1f8c0e943522310cae /libavutil/samplefmt.h | |
parent | c9df48909e03031aeb90facf9f307f3103691792 (diff) | |
download | ffmpeg-streaming-cd15b7c03d8df29d4c69b0620cf27d4a8c9dfb65.zip ffmpeg-streaming-cd15b7c03d8df29d4c69b0620cf27d4a8c9dfb65.tar.gz |
samplefmt: make av_samples_alloc() initialize the data to silence.
Right now the buffer is zeroed, which does not represent silence for U8(P).
Diffstat (limited to 'libavutil/samplefmt.h')
-rw-r--r-- | libavutil/samplefmt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/samplefmt.h b/libavutil/samplefmt.h index 445856d..0641c56 100644 --- a/libavutil/samplefmt.h +++ b/libavutil/samplefmt.h @@ -182,6 +182,7 @@ int av_samples_fill_arrays(uint8_t **audio_data, int *linesize, * Allocate a samples buffer for nb_samples samples, and fill data pointers and * linesize accordingly. * The allocated samples buffer can be freed by using av_freep(&audio_data[0]) + * Allocated data will be initialized to silence. * * @see enum AVSampleFormat * The documentation for AVSampleFormat describes the data layout. |