OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd8a0a9
)
avutil/internal: add av_warn_unused_result to avpriv_open
author
Ganesh Ajjanagadde
<gajjanagadde@gmail.com>
Thu, 15 Oct 2015 21:49:48 +0000
(17:49 -0400)
committer
Ganesh Ajjanagadde
<gajjanagadde@gmail.com>
Fri, 16 Oct 2015 21:18:21 +0000
(17:18 -0400)
The open syscall can obviously fail, and its return code needs to be
checked.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavutil/internal.h
patch
|
blob
|
history
diff --git
a/libavutil/internal.h
b/libavutil/internal.h
index
13dbd3b
..
5c2cd99
100644
(file)
--- a/
libavutil/internal.h
+++ b/
libavutil/internal.h
@@
-259,6
+259,7
@@
void avpriv_request_sample(void *avc,
/**
* A wrapper for open() setting O_CLOEXEC.
*/
+av_warn_unused_result
int avpriv_open(const char *filename, int flags, ...);
int avpriv_set_systematic_pal2(uint32_t pal[256], enum AVPixelFormat pix_fmt);