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
43abef9f
Commit
43abef9f
authored
Dec 24, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpl: Fix near infinite loop in index reading due to missing eof check.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
282bb028
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rpl.c
libavformat/rpl.c
+2
-2
No files found.
libavformat/rpl.c
View file @
43abef9f
...
...
@@ -58,7 +58,7 @@ static int read_line(AVIOContext * pb, char* line, int bufsize)
break
;
if
(
b
==
'\n'
)
{
line
[
i
]
=
'\0'
;
return
0
;
return
url_feof
(
pb
)
?
-
1
:
0
;
}
line
[
i
]
=
b
;
}
...
...
@@ -252,7 +252,7 @@ static int rpl_read_header(AVFormatContext *s, AVFormatParameters *ap)
// Read the index
avio_seek
(
pb
,
chunk_catalog_offset
,
SEEK_SET
);
total_audio_size
=
0
;
for
(
i
=
0
;
i
<
number_of_chunks
;
i
++
)
{
for
(
i
=
0
;
!
error
&&
i
<
number_of_chunks
;
i
++
)
{
int64_t
offset
,
video_size
,
audio_size
;
error
|=
read_line
(
pb
,
line
,
sizeof
(
line
));
if
(
3
!=
sscanf
(
line
,
"%"
PRId64
" , %"
PRId64
" ; %"
PRId64
,
...
...
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