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
801d78f0
Commit
801d78f0
authored
Feb 14, 2019
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/truehd_core: Initialize the last bytes of the output buffer.
Avoids undeterministic output.
parent
a171cafb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
truehd_core_bsf.c
libavcodec/truehd_core_bsf.c
+2
-0
No files found.
libavcodec/truehd_core_bsf.c
View file @
801d78f0
...
...
@@ -117,6 +117,8 @@ static int truehd_core_filter(AVBSFContext *ctx, AVPacket *out)
out
->
size
-=
reduce
*
2
;
parity_nibble
^=
out
->
size
/
2
;
if
(
out_size
>
8
)
AV_WN64
(
out
->
data
+
out_size
-
8
,
0
);
if
(
have_header
)
{
memcpy
(
out
->
data
+
4
,
in
->
data
+
4
,
28
);
out
->
data
[
16
+
4
]
=
(
out
->
data
[
16
+
4
]
&
0x0f
)
|
(
FFMIN
(
s
->
hdr
.
num_substreams
,
3
)
<<
4
);
...
...
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