summaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-15 18:18:02 -0400
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-16 17:18:39 -0400
commita0b079ac25feda03d41f6b1755a575bd1b80b2aa (patch)
tree03113e213f1104576e3c2a1ab0abd633956950ef /libavutil
parent31ed189d5c0583cac118197689b4f3766aa146cb (diff)
downloadffmpeg-streaming-a0b079ac25feda03d41f6b1755a575bd1b80b2aa.zip
ffmpeg-streaming-a0b079ac25feda03d41f6b1755a575bd1b80b2aa.tar.gz
avutil/file: add av_warn_unused_result to av_file_map
The return code here should be checked. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/file.h1
1 files changed, 1 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud