lavc/v4l2_context: fix compile warning for incompatible pointer type

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Reviewed-by: Andriy Gelman <andriy.gelman@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/334/head
Linjie Fu 5 years ago committed by Michael Niedermayer
parent 220c7dadc4
commit dfa1fc17a5
  1. 2
      libavcodec/v4l2_context.c

@ -48,7 +48,7 @@ static inline V4L2m2mContext *ctx_to_m2mctx(V4L2Context *ctx)
container_of(ctx, V4L2m2mContext, capture); container_of(ctx, V4L2m2mContext, capture);
} }
static inline AVClass *logger(V4L2Context *ctx) static inline AVCodecContext *logger(V4L2Context *ctx)
{ {
return ctx_to_m2mctx(ctx)->avctx; return ctx_to_m2mctx(ctx)->avctx;
} }

Loading…
Cancel
Save