Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
3905ecbc
Commit
3905ecbc
authored
Jan 13, 2020
by
Andriy Gelman
Committed by
Mark Thompson
Feb 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec:v4l2_context: Remove NULL initialization
Signed-off-by:
Andriy Gelman
<
andriy.gelman@gmail.com
>
parent
e5e7289e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
v4l2_context.c
libavcodec/v4l2_context.c
+3
-3
No files found.
libavcodec/v4l2_context.c
View file @
3905ecbc
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment