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
937911d5
Commit
937911d5
authored
May 31, 2014
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
faad: drop byte of padding for raw streams
Fixes #2575, #11514
parent
c4b10db3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
modules/codec/faad.c
modules/codec/faad.c
+13
-2
No files found.
modules/codec/faad.c
View file @
937911d5
...
...
@@ -491,8 +491,19 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_sys
->
i_buffer
-=
frame
.
bytesconsumed
;
if
(
p_sys
->
i_buffer
>
0
)
{
memmove
(
p_sys
->
p_buffer
,
&
p_sys
->
p_buffer
[
frame
.
bytesconsumed
],
p_sys
->
i_buffer
);
/* drop byte of raw AAC padding (if present) */
if
(
frame
.
header_type
==
RAW
&&
p_sys
->
i_buffer
==
1
&&
p_sys
->
p_buffer
[
0
]
==
0x21
&&
p_sys
->
p_buffer
[
frame
.
bytesconsumed
]
==
0
)
{
p_sys
->
i_buffer
=
0
;
}
else
{
memmove
(
p_sys
->
p_buffer
,
&
p_sys
->
p_buffer
[
frame
.
bytesconsumed
],
p_sys
->
i_buffer
);
}
}
return
p_out
;
...
...
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