lavf/avformat: add av_warn_unused_result to avformat_write_header

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

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
pull/167/head
Ganesh Ajjanagadde 9 years ago
parent 879b4a9d3e
commit fc5e39544b
  1. 1
      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);
/**

Loading…
Cancel
Save