diff options
author | Andriy Gelman <andriy.gelman@gmail.com> | 2020-01-12 23:11:29 -0500 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-02-01 21:39:05 +0000 |
commit | 73e23b404c93a339b5a77d013a7a1274e5b4e063 (patch) | |
tree | 11ad209ec108b30b5574a9b5008592bf130424c5 /libavcodec/v4l2_context.c | |
parent | 4c1a3e91665c102136ded4a78310166e9eb99604 (diff) |
avcodec/v4l2_m2m: Use consistent logging context
Before this commit v4l2_m2m used two different logging contexts (from
V4L2m2mPriv and AVCodecContext). For consistency always use AVCodecContext.
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
Diffstat (limited to 'libavcodec/v4l2_context.c')
-rw-r--r-- | libavcodec/v4l2_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c index 33d2821626..95a2bfa6a4 100644 --- a/libavcodec/v4l2_context.c +++ b/libavcodec/v4l2_context.c @@ -50,7 +50,7 @@ static inline V4L2m2mContext *ctx_to_m2mctx(V4L2Context *ctx) static inline AVClass *logger(V4L2Context *ctx) { - return ctx_to_m2mctx(ctx)->priv; + return ctx_to_m2mctx(ctx)->avctx; } static inline unsigned int v4l2_get_width(struct v4l2_format *fmt) |