[FFmpeg-devel] [PATCH] avutil/file: add av_warn_unused_result to av_file_map

Ganesh Ajjanagadde gajjanagadde at gmail.com
Fri Oct 16 00:19:08 CEST 2015


The return code here should be checked.

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

diff --git a/libavutil/file.h b/libavutil/file.h
index 1cae295..e931be7 100644
--- a/libavutil/file.h
+++ b/libavutil/file.h
@@ -40,6 +40,7 @@
  * @return a non negative number in case of success, a negative value
  * corresponding to an AVERROR error code in case of failure
  */
+av_warn_unused_result
 int av_file_map(const char *filename, uint8_t **bufptr, size_t *size,
                 int log_offset, void *log_ctx);
 
-- 
2.6.1



More information about the ffmpeg-devel mailing list