Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
4d21a276
Commit
4d21a276
authored
Jul 10, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec EncodeVideo(): reduce indentation level
Also fix indentation (4 spaces)
parent
068f7eea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
170 additions
and
172 deletions
+170
-172
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+170
-172
No files found.
modules/codec/avcodec/encoder.c
View file @
4d21a276
...
...
@@ -812,7 +812,6 @@ error:
static
block_t
*
EncodeVideo
(
encoder_t
*
p_enc
,
picture_t
*
p_pict
)
{
encoder_sys_t
*
p_sys
=
p_enc
->
p_sys
;
AVFrame
frame
;
int
i_out
,
i_plane
;
/* Initialize the video output buffer the first time.
...
...
@@ -834,8 +833,9 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
return
NULL
;
}
memset
(
&
frame
,
0
,
sizeof
(
AVFrame
)
);
if
(
likely
(
p_pict
)
)
{
AVFrame
frame
;
memset
(
&
frame
,
0
,
sizeof
(
AVFrame
)
);
for
(
i_plane
=
0
;
i_plane
<
p_pict
->
i_planes
;
i_plane
++
)
{
frame
.
data
[
i_plane
]
=
p_pict
->
p
[
i_plane
].
p_pixels
;
...
...
@@ -937,8 +937,9 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
p_sys
->
i_buffer_out
,
NULL
);
}
if
(
i_out
>
0
)
{
if
(
i_out
<=
0
)
return
NULL
;
block_t
*
p_block
=
block_New
(
p_enc
,
i_out
);
memcpy
(
p_block
->
p_buffer
,
p_sys
->
p_buffer_out
,
i_out
);
...
...
@@ -1012,9 +1013,6 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
}
return
p_block
;
}
return
NULL
;
}
/****************************************************************************
...
...
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