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
68f00fb4
Commit
68f00fb4
authored
Jun 23, 2015
by
Rodger Combs
Committed by
Michael Niedermayer
Jun 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/brstm: if the file lies about the last block's size, correct it
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f4be604f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
brstm.c
libavformat/brstm.c
+9
-0
No files found.
libavformat/brstm.c
View file @
68f00fb4
...
@@ -369,6 +369,15 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -369,6 +369,15 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
size
=
b
->
last_block_used_bytes
;
size
=
b
->
last_block_used_bytes
;
samples
=
b
->
last_block_samples
;
samples
=
b
->
last_block_samples
;
skip
=
b
->
last_block_size
-
b
->
last_block_used_bytes
;
skip
=
b
->
last_block_size
-
b
->
last_block_used_bytes
;
if
(
samples
<
size
*
14
/
8
)
{
uint32_t
adjusted_size
=
samples
/
14
*
8
;
if
(
samples
%
14
)
adjusted_size
+=
(
samples
%
14
+
1
)
/
2
+
1
;
skip
+=
size
-
adjusted_size
;
size
=
adjusted_size
;
}
}
else
if
(
b
->
current_block
<
b
->
block_count
)
{
}
else
if
(
b
->
current_block
<
b
->
block_count
)
{
size
=
b
->
block_size
;
size
=
b
->
block_size
;
samples
=
b
->
samples_per_block
;
samples
=
b
->
samples_per_block
;
...
...
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