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
887cd591
Commit
887cd591
authored
Jan 22, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegpsmux: Fix integer overflow with huge VBV sizes.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
018a6645
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mpegenc.c
libavformat/mpegenc.c
+1
-1
No files found.
libavformat/mpegenc.c
View file @
887cd591
...
@@ -1047,7 +1047,7 @@ retry:
...
@@ -1047,7 +1047,7 @@ retry:
StreamInfo
*
stream
=
st
->
priv_data
;
StreamInfo
*
stream
=
st
->
priv_data
;
const
int
avail_data
=
av_fifo_size
(
stream
->
fifo
);
const
int
avail_data
=
av_fifo_size
(
stream
->
fifo
);
const
int
space
=
stream
->
max_buffer_size
-
stream
->
buffer_index
;
const
int
space
=
stream
->
max_buffer_size
-
stream
->
buffer_index
;
int
rel_space
=
1024
*
space
/
stream
->
max_buffer_size
;
int
rel_space
=
1024
LL
*
space
/
stream
->
max_buffer_size
;
PacketDesc
*
next_pkt
=
stream
->
premux_packet
;
PacketDesc
*
next_pkt
=
stream
->
premux_packet
;
/* for subtitle, a single PES packet must be generated,
/* for subtitle, a single PES packet must be generated,
...
...
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