[FFmpeg-cvslog] avutil/file: add av_warn_unused_result to av_file_map
Ganesh Ajjanagadde
git at videolan.org
Fri Oct 16 23:27:25 CEST 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Thu Oct 15 18:18:02 2015 -0400| [a0b079ac25feda03d41f6b1755a575bd1b80b2aa] | committer: Ganesh Ajjanagadde
avutil/file: add av_warn_unused_result to av_file_map
The return code here should be checked.
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a0b079ac25feda03d41f6b1755a575bd1b80b2aa
---
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);
More information about the ffmpeg-cvslog
mailing list