]> git.sesse.net Git - ffmpeg/commit
avcodec/v4l2_m2m: Simplify capture buffer init check
authorAndriy Gelman <andriy.gelman@gmail.com>
Mon, 13 Jan 2020 04:11:27 +0000 (23:11 -0500)
committerMark Thompson <sw@jkqxz.net>
Sat, 1 Feb 2020 21:39:05 +0000 (21:39 +0000)
commit4c1a3e91665c102136ded4a78310166e9eb99604
tree3a631584b6ae3bc9ee44dfaafd6205cb128cd81a
parent3905ecbc0670377e768cecf9a5e9be397b7a4e5a
avcodec/v4l2_m2m: Simplify capture buffer init check

Before this commit s->avctx == NULL was used to infer that an encoder is
being initialzed. Code readability has been improved by directly using
!av_codec_is_decoder() instead.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
libavcodec/v4l2_m2m.c
libavcodec/v4l2_m2m_enc.c