[FFmpeg-devel] [PATCH 06/11] avdevice/decklink_enc: add av_warn_unused_result

Ganesh Ajjanagadde gajjanagadde at gmail.com
Fri Oct 16 04:22:20 CEST 2015


Should not trigger any warnings, but adds robustness.
Untested.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
 libavdevice/decklink_enc.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavdevice/decklink_enc.h b/libavdevice/decklink_enc.h
index 6086947..462e031 100644
--- a/libavdevice/decklink_enc.h
+++ b/libavdevice/decklink_enc.h
@@ -23,7 +23,9 @@
 extern "C" {
 #endif
 
+av_warn_unused_result
 int ff_decklink_write_header(AVFormatContext *avctx);
+av_warn_unused_result
 int ff_decklink_write_packet(AVFormatContext *avctx, AVPacket *pkt);
 int ff_decklink_write_trailer(AVFormatContext *avctx);
 
-- 
2.6.1



More information about the ffmpeg-devel mailing list