[FFmpeg-devel] [PATCH 05/11] avdevice/decklink_common: add av_warn_unused_result

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


This should not trigger any warnings, but adds robustness.
Untested.

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

diff --git a/libavdevice/decklink_common.h b/libavdevice/decklink_common.h
index 3bc30f0..eb13a1b 100644
--- a/libavdevice/decklink_common.h
+++ b/libavdevice/decklink_common.h
@@ -96,8 +96,12 @@ typedef uint32_t buffercount_type;
 
 
 HRESULT ff_decklink_get_display_name(IDeckLink *This, const char **displayName);
+av_warn_unused_result
 int ff_decklink_set_format(AVFormatContext *avctx, int width, int height, int tb_num, int tb_den, decklink_direction_t direction = DIRECTION_OUT, int num = 0);
+av_warn_unused_result
 int ff_decklink_set_format(AVFormatContext *avctx, decklink_direction_t direction, int num);
+av_warn_unused_result
 int ff_decklink_list_devices(AVFormatContext *avctx);
+av_warn_unused_result
 int ff_decklink_list_formats(AVFormatContext *avctx, decklink_direction_t direction = DIRECTION_OUT);
 
-- 
2.6.1



More information about the ffmpeg-devel mailing list