[FFmpeg-cvslog] lavf/avformat: add av_warn_unused_result to avformat_write_header

Ganesh Ajjanagadde git at videolan.org
Mon Dec 21 17:42:14 CET 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Mon Dec 21 08:36:46 2015 -0800| [fc5e39544b92af71e2cce7ea9dcb300875f9773b] | committer: Ganesh Ajjanagadde

lavf/avformat: add av_warn_unused_result to avformat_write_header

May be useful as a defense, see e.g c62d1780fff8a1997dd1707bbc557efc8fe41e3c.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fc5e39544b92af71e2cce7ea9dcb300875f9773b
---

 libavformat/avformat.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index ddf07b1..32bed01 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -2283,6 +2283,7 @@ void avformat_close_input(AVFormatContext **s);
  *
  * @see av_opt_find, av_dict_set, avio_open, av_oformat_next.
  */
+av_warn_unused_result
 int avformat_write_header(AVFormatContext *s, AVDictionary **options);
 
 /**



More information about the ffmpeg-cvslog mailing list