[FFmpeg-devel] [PATCH] lavu/samplefmt: add note regarding buf validity in av_samples_fill_arrays() doxy
Stefano Sabatini
stefasab at gmail.com
Sat Sep 8 01:21:04 CEST 2012
---
libavutil/samplefmt.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/libavutil/samplefmt.h b/libavutil/samplefmt.h
index dcc5a73..e33a42a 100644
--- a/libavutil/samplefmt.h
+++ b/libavutil/samplefmt.h
@@ -169,6 +169,10 @@ int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples,
* channel's data buffer for planar layout, or to the aligned size of the
* buffer for all channels for packed layout.
*
+ * The buffer in buf must be big enough to contain all the samples
+ * (use av_samples_get_buffer_size() to compute its minimum size),
+ * otherwise the audio_data pointers will point to invalid data.
+ *
* @see enum AVSampleFormat
* The documentation for AVSampleFormat describes the data layout.
*
--
1.7.5.4
More information about the ffmpeg-devel
mailing list