[FFmpeg-devel] [PATCH] lavfi: silence a discarded const qualifier warning.

Clément Bœsch ubitux at gmail.com
Thu May 16 15:53:06 CEST 2013


On Sat, May 11, 2013 at 10:29:59PM +0200, Clément Bœsch wrote:
> ---
>  libavfilter/avfilter.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
> index 3f94dde..2b95b65 100644
> --- a/libavfilter/avfilter.c
> +++ b/libavfilter/avfilter.c
> @@ -436,14 +436,14 @@ static AVFilter *first_filter;
>  
>  AVFilter *avfilter_get_by_name(const char *name)
>  {
> -    AVFilter *f = NULL;
> +    const AVFilter *f = NULL;
>  
>      if (!name)
>          return NULL;
>  
>      while ((f = avfilter_next(f)))
>          if (!strcmp(f->name, name))
> -            return f;
> +            return (AVFilter *)f;
>  
>      return NULL;
>  }

Ping.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130516/08f9192c/attachment.asc>


More information about the ffmpeg-devel mailing list