From fc5e39544b92af71e2cce7ea9dcb300875f9773b Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Mon, 21 Dec 2015 08:36:46 -0800 Subject: 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 --- libavformat/avformat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/avformat.h') diff --git a/libavformat/avformat.h b/libavformat/avformat.h index ddf07b1bf0..32bed018ef 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); /** -- cgit v1.2.3