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
1a14e391
Commit
1a14e391
authored
May 09, 2018
by
Aman Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mpegts: use MAX_SECTION_SIZE instead of hardcoded value
Signed-off-by:
Aman Gupta
<
aman@tmm1.net
>
parent
2c500f50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mpegts.c
libavformat/mpegts.c
+2
-2
No files found.
libavformat/mpegts.c
View file @
1a14e391
...
...
@@ -401,7 +401,7 @@ static void write_section_data(MpegTSContext *ts, MpegTSFilter *tss1,
}
else
{
if
(
tss
->
end_of_section_reached
)
return
;
len
=
4096
-
tss
->
section_index
;
len
=
MAX_SECTION_SIZE
-
tss
->
section_index
;
if
(
buf_size
<
len
)
len
=
buf_size
;
memcpy
(
tss
->
section_buf
+
tss
->
section_index
,
buf
,
len
);
...
...
@@ -411,7 +411,7 @@ static void write_section_data(MpegTSContext *ts, MpegTSFilter *tss1,
/* compute section length if possible */
if
(
tss
->
section_h_size
==
-
1
&&
tss
->
section_index
>=
3
)
{
len
=
(
AV_RB16
(
tss
->
section_buf
+
1
)
&
0xfff
)
+
3
;
if
(
len
>
4096
)
if
(
len
>
MAX_SECTION_SIZE
)
return
;
tss
->
section_h_size
=
len
;
}
...
...
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