diff options
author | Andriy Gelman <andriy.gelman@gmail.com> | 2020-01-12 23:11:26 -0500 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-02-01 21:39:05 +0000 |
commit | 3905ecbc0670377e768cecf9a5e9be397b7a4e5a (patch) | |
tree | 76bf8582bf86495ae93f2e3b7389a5a92fd42512 | |
parent | e5e7289ea833947529186c10370639edffd1c20f (diff) | |
download | ffmpeg-3905ecbc0670377e768cecf9a5e9be397b7a4e5a.tar.gz |
avcodec:v4l2_context: Remove NULL initialization
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
-rw-r--r-- | libavcodec/v4l2_context.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c index 1bfa8b2cec..33d2821626 100644 --- a/libavcodec/v4l2_context.c +++ b/libavcodec/v4l2_context.c @@ -278,7 +278,7 @@ static V4L2Buffer* v4l2_dequeue_v4l2buf(V4L2Context *ctx, int timeout) { struct v4l2_plane planes[VIDEO_MAX_PLANES]; struct v4l2_buffer buf = { 0 }; - V4L2Buffer* avbuf = NULL; + V4L2Buffer *avbuf; struct pollfd pfd = { .events = POLLIN | POLLRDNORM | POLLPRI | POLLOUT | POLLWRNORM, /* default blocking capture */ .fd = ctx_to_m2mctx(ctx)->fd, @@ -604,7 +604,7 @@ int ff_v4l2_context_enqueue_packet(V4L2Context* ctx, const AVPacket* pkt) int ff_v4l2_context_dequeue_frame(V4L2Context* ctx, AVFrame* frame, int timeout) { - V4L2Buffer* avbuf = NULL; + V4L2Buffer *avbuf; /* * timeout=-1 blocks until: @@ -624,7 +624,7 @@ int ff_v4l2_context_dequeue_frame(V4L2Context* ctx, AVFrame* frame, int timeout) int ff_v4l2_context_dequeue_packet(V4L2Context* ctx, AVPacket* pkt) { - V4L2Buffer* avbuf = NULL; + V4L2Buffer *avbuf; /* * blocks until: |