Commit fc5e3954 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

lavf/avformat: add av_warn_unused_result to avformat_write_header

May be useful as a defense, see e.g c62d1780.
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 879b4a9d
...@@ -2283,6 +2283,7 @@ void avformat_close_input(AVFormatContext **s); ...@@ -2283,6 +2283,7 @@ void avformat_close_input(AVFormatContext **s);
* *
* @see av_opt_find, av_dict_set, avio_open, av_oformat_next. * @see av_opt_find, av_dict_set, avio_open, av_oformat_next.
*/ */
av_warn_unused_result
int avformat_write_header(AVFormatContext *s, AVDictionary **options); int avformat_write_header(AVFormatContext *s, AVDictionary **options);
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment