diff mbox series

[FFmpeg-devel] lavc/v4l2_context: fix compile warning for incompatible pointer type

Message ID 1582820072-22602-1-git-send-email-linjie.fu@intel.com
State Accepted
Headers show
Series [FFmpeg-devel] lavc/v4l2_context: fix compile warning for incompatible pointer type | expand

Checks

Context Check Description
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Fu, Linjie Feb. 27, 2020, 4:14 p.m. UTC
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
---
 libavcodec/v4l2_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andriy Gelman Feb. 28, 2020, 5:24 a.m. UTC | #1
On Fri, 28. Feb 00:14, Linjie Fu wrote:
> Signed-off-by: Linjie Fu <linjie.fu@intel.com>
> ---
>  libavcodec/v4l2_context.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c
> index 95a2bfa..8110bbb 100644
> --- a/libavcodec/v4l2_context.c
> +++ b/libavcodec/v4l2_context.c
> @@ -48,7 +48,7 @@ static inline V4L2m2mContext *ctx_to_m2mctx(V4L2Context *ctx)
>          container_of(ctx, V4L2m2mContext, capture);
>  }
>  
> -static inline AVClass *logger(V4L2Context *ctx)
> +static inline AVCodecContext *logger(V4L2Context *ctx)
>  {
>      return ctx_to_m2mctx(ctx)->avctx;
>  }
> -- 

lgtm

Thanks,
Michael Niedermayer Feb. 28, 2020, 6:37 p.m. UTC | #2
On Fri, Feb 28, 2020 at 12:24:27AM -0500, Andriy Gelman wrote:
> On Fri, 28. Feb 00:14, Linjie Fu wrote:
> > Signed-off-by: Linjie Fu <linjie.fu@intel.com>
> > ---
> >  libavcodec/v4l2_context.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c
> > index 95a2bfa..8110bbb 100644
> > --- a/libavcodec/v4l2_context.c
> > +++ b/libavcodec/v4l2_context.c
> > @@ -48,7 +48,7 @@ static inline V4L2m2mContext *ctx_to_m2mctx(V4L2Context *ctx)
> >          container_of(ctx, V4L2m2mContext, capture);
> >  }
> >  
> > -static inline AVClass *logger(V4L2Context *ctx)
> > +static inline AVCodecContext *logger(V4L2Context *ctx)
> >  {
> >      return ctx_to_m2mctx(ctx)->avctx;
> >  }
> > -- 
> 
> lgtm

will apply

thx

[...]
diff mbox series

Patch

diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c
index 95a2bfa..8110bbb 100644
--- a/libavcodec/v4l2_context.c
+++ b/libavcodec/v4l2_context.c
@@ -48,7 +48,7 @@  static inline V4L2m2mContext *ctx_to_m2mctx(V4L2Context *ctx)
         container_of(ctx, V4L2m2mContext, capture);
 }
 
-static inline AVClass *logger(V4L2Context *ctx)
+static inline AVCodecContext *logger(V4L2Context *ctx)
 {
     return ctx_to_m2mctx(ctx)->avctx;
 }