Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
be0796a6
Commit
be0796a6
authored
Apr 17, 2014
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x265: never prepend SPS/PPS/VPS to frames
parent
caed1d91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
modules/codec/x265.c
modules/codec/x265.c
+2
-9
No files found.
modules/codec/x265.c
View file @
be0796a6
...
@@ -97,19 +97,12 @@ static block_t *Encode(encoder_t *p_enc, picture_t *p_pict)
...
@@ -97,19 +97,12 @@ static block_t *Encode(encoder_t *p_enc, picture_t *p_pict)
for
(
uint32_t
i
=
0
;
i
<
i_nal
;
i
++
)
for
(
uint32_t
i
=
0
;
i
<
i_nal
;
i
++
)
i_out
+=
nal
[
i
].
sizeBytes
;
i_out
+=
nal
[
i
].
sizeBytes
;
int
i_extra
=
0
;
block_t
*
p_block
=
block_Alloc
(
i_out
);
if
(
IS_X265_TYPE_I
(
pic
.
sliceType
))
i_extra
=
p_enc
->
fmt_out
.
i_extra
;
block_t
*
p_block
=
block_Alloc
(
i_extra
+
i_out
);
if
(
!
p_block
)
if
(
!
p_block
)
return
NULL
;
return
NULL
;
if
(
i_extra
)
memcpy
(
p_block
->
p_buffer
,
p_enc
->
fmt_out
.
p_extra
,
i_extra
);
/* all payloads are sequentially laid out in memory */
/* all payloads are sequentially laid out in memory */
memcpy
(
p_block
->
p_buffer
+
i_extra
,
nal
[
0
].
payload
,
i_out
);
memcpy
(
p_block
->
p_buffer
,
nal
[
0
].
payload
,
i_out
);
/* This isn't really valid for streams with B-frames */
/* This isn't really valid for streams with B-frames */
p_block
->
i_length
=
CLOCK_FREQ
*
p_block
->
i_length
=
CLOCK_FREQ
*
...
...
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