[FFmpeg-devel] [PATCH] avutil/imgutils: add av_warn_unused_result

Ganesh Ajjanagadde gajjanagadde at gmail.com
Fri Oct 16 02:52:57 CEST 2015


This will trigger a few warnings, mainly in swscale.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
 libavutil/imgutils.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavutil/imgutils.h b/libavutil/imgutils.h
index 23282a3..164d0ad 100644
--- a/libavutil/imgutils.h
+++ b/libavutil/imgutils.h
@@ -65,6 +65,7 @@ int av_image_get_linesize(enum AVPixelFormat pix_fmt, int width, int plane);
  * @param linesizes array to be filled with the linesize for each plane
  * @return >= 0 in case of success, a negative error code otherwise
  */
+av_warn_unused_result
 int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int width);
 
 /**
@@ -78,6 +79,7 @@ int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int wi
  * @return the size in bytes required for the image buffer, a negative
  * error code in case of failure
  */
+av_warn_unused_result
 int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int height,
                            uint8_t *ptr, const int linesizes[4]);
 
@@ -91,6 +93,7 @@ int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int hei
  * @return the size in bytes required for the image buffer, a negative
  * error code in case of failure
  */
+av_warn_unused_result
 int av_image_alloc(uint8_t *pointers[4], int linesizes[4],
                    int w, int h, enum AVPixelFormat pix_fmt, int align);
 
-- 
2.6.1



More information about the ffmpeg-devel mailing list