[FFmpeg-devel] [PATCH] avutil/pixdesc: add av_warn_unused_result to av_pix_fmt_get_chroma_sub_sample
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Fri Oct 16 01:20:30 CEST 2015
This will trigger a bunch of warnings (rightfully so). This API has been
abused, see the Doxygen comment above for what to do if the error code
is not meant to be checked.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavutil/pixdesc.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h
index a6056fe..975fbf2 100644
--- a/libavutil/pixdesc.h
+++ b/libavutil/pixdesc.h
@@ -297,6 +297,7 @@ enum AVPixelFormat av_pix_fmt_desc_get_id(const AVPixFmtDescriptor *desc);
*
* @return 0 on success, AVERROR(ENOSYS) on invalid or unknown pixel format
*/
+av_warn_unused_result
int av_pix_fmt_get_chroma_sub_sample(enum AVPixelFormat pix_fmt,
int *h_shift, int *v_shift);
--
2.6.1
More information about the ffmpeg-devel
mailing list