[FFmpeg-devel] [PATCH 1/2] swscale/swscale_internal: add av_warn_unused_result

Ganesh Ajjanagadde gajjanagadde at gmail.com
Thu Oct 29 04:01:21 CET 2015


On Thu, Oct 15, 2015 at 9:46 PM, Ganesh Ajjanagadde
<gajjanagadde at gmail.com> wrote:
> This triggers a few warnings that need to be fixed.
>
> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> ---
>  libswscale/swscale_internal.h | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
> index 27a40af..6e4d031 100644
> --- a/libswscale/swscale_internal.h
> +++ b/libswscale/swscale_internal.h
> @@ -634,6 +634,7 @@ typedef struct SwsContext {
>  //FIXME check init (where 0)
>
>  SwsFunc ff_yuv2rgb_get_func_ptr(SwsContext *c);
> +av_warn_unused_result
>  int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4],
>                               int fullRange, int brightness,
>                               int contrast, int saturation);
> @@ -1017,6 +1018,7 @@ typedef struct VScalerContext
>  int ff_init_slice_from_src(SwsSlice * s, uint8_t *src[4], int stride[4], int srcW, int lumY, int lumH, int chrY, int chrH, int relative);
>
>  // Initialize scaler filter descriptor chain
> +av_warn_unused_result
>  int ff_init_filters(SwsContext *c);
>
>  // Free all filter data
> @@ -1031,23 +1033,29 @@ int ff_free_filters(SwsContext *c);
>  int ff_rotate_slice(SwsSlice *s, int lum, int chr);
>
>  /// initializes gamma conversion descriptor
> +av_warn_unused_result
>  int ff_init_gamma_convert(SwsFilterDescriptor *desc, SwsSlice * src, uint16_t *table);
>
>  /// initializes lum pixel format conversion descriptor
> +av_warn_unused_result
>  int ff_init_desc_fmt_convert(SwsFilterDescriptor *desc, SwsSlice * src, SwsSlice *dst, uint32_t *pal);
>
>  /// initializes lum horizontal scaling descriptor
> +av_warn_unused_result
>  int ff_init_desc_hscale(SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst, uint16_t *filter, int * filter_pos, int filter_size, int xInc);
>
>  /// initializes chr pixel format conversion descriptor
> +av_warn_unused_result
>  int ff_init_desc_cfmt_convert(SwsFilterDescriptor *desc, SwsSlice * src, SwsSlice *dst, uint32_t *pal);
>
>  /// initializes chr horizontal scaling descriptor
> +av_warn_unused_result
>  int ff_init_desc_chscale(SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst, uint16_t *filter, int * filter_pos, int filter_size, int xInc);
>
>  int ff_init_desc_no_chr(SwsFilterDescriptor *desc, SwsSlice * src, SwsSlice *dst);
>
>  /// initializes vertical scaling descriptors
> +av_warn_unused_result
>  int ff_init_vscale(SwsContext *c, SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst);
>
>  /// setup vertical scaler functions
> --
> 2.6.1
>

ping


More information about the ffmpeg-devel mailing list