lavf/avformat: add av_warn_unused_result to avformat_write_header
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Mon, 21 Dec 2015 16:36:46 +0000 (08:36 -0800)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Mon, 21 Dec 2015 16:39:57 +0000 (08:39 -0800)
May be useful as a defense, see e.g c62d1780fff8a1997dd1707bbc557efc8fe41e3c.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavformat/avformat.h

index ddf07b1..32bed01 100644 (file)
@@ -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);
 
 /**