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

Michael Niedermayer michaelni at gmx.at
Fri Feb 28 20:37:50 EET 2020


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 at 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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200228/cf3ff7a0/attachment.sig>


More information about the ffmpeg-devel mailing list