[FFmpeg-devel] [PATCH] avutil/samplefmt: add av_warn_unused_result
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Fri Oct 16 00:31:36 CEST 2015
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavutil/samplefmt.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavutil/samplefmt.h b/libavutil/samplefmt.h
index 6a8a031..246147f 100644
--- a/libavutil/samplefmt.h
+++ b/libavutil/samplefmt.h
@@ -222,6 +222,7 @@ int av_samples_fill_arrays(uint8_t **audio_data, int *linesize,
* @see av_samples_fill_arrays()
* @see av_samples_alloc_array_and_samples()
*/
+av_warn_unused_result
int av_samples_alloc(uint8_t **audio_data, int *linesize, int nb_channels,
int nb_samples, enum AVSampleFormat sample_fmt, int align);
@@ -234,6 +235,7 @@ int av_samples_alloc(uint8_t **audio_data, int *linesize, int nb_channels,
*
* @see av_samples_alloc()
*/
+av_warn_unused_result
int av_samples_alloc_array_and_samples(uint8_t ***audio_data, int *linesize, int nb_channels,
int nb_samples, enum AVSampleFormat sample_fmt, int align);
--
2.6.1
More information about the ffmpeg-devel
mailing list