summaryrefslogtreecommitdiff
path: root/libavutil/samplefmt.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-03-27 21:34:47 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-04-09 10:20:35 -0400
commit18ed3788b0ebdfde916eac969d7f9ecd5e884f39 (patch)
treef3cc288123abb473fbee2d1e64249fcbf8f2eaa5 /libavutil/samplefmt.h
parentb6c4518a87fa7c91d00cf4e1acf9230f308b8f14 (diff)
avutil: allow NULL linesize in av_samples_fill_arrays() and av_samples_alloc()
Diffstat (limited to 'libavutil/samplefmt.h')
-rw-r--r--libavutil/samplefmt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/samplefmt.h b/libavutil/samplefmt.h
index 4bd5da4471..0d6bde2732 100644
--- a/libavutil/samplefmt.h
+++ b/libavutil/samplefmt.h
@@ -139,7 +139,7 @@ int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples,
* for packed layout.
*
* @param[out] audio_data array to be filled with the pointer for each channel
- * @param[out] linesize calculated linesize
+ * @param[out] linesize calculated linesize, may be NULL
* @param buf the pointer to a buffer containing the samples
* @param nb_channels the number of channels
* @param nb_samples the number of samples in a single channel
@@ -157,7 +157,7 @@ int av_samples_fill_arrays(uint8_t **audio_data, int *linesize, uint8_t *buf,
* The allocated samples buffer can be freed by using av_freep(&audio_data[0])
*
* @param[out] audio_data array to be filled with the pointer for each channel
- * @param[out] linesize aligned size for audio buffer(s)
+ * @param[out] linesize aligned size for audio buffer(s), may be NULL
* @param nb_channels number of audio channels
* @param nb_samples number of samples per channel
* @param align buffer size alignment (1 = no alignment required)