Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
multicat
Commits
ecfd423e
Commit
ecfd423e
authored
Dec 25, 2014
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more safeguards in multicat_validate
parent
d664d61b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
multicat_validate.c
multicat_validate.c
+14
-2
No files found.
multicat_validate.c
View file @
ecfd423e
...
...
@@ -63,7 +63,14 @@ static void HandleSTC( uint64_t i_stc )
int64_t
i_sleep
;
retry:
i_wall
=
real_Date
()
-
i_delay
;
i_sleep
=
i_stc
-
i_wall
;
i_sleep
=
(
int64_t
)
i_stc
-
(
int64_t
)
i_wall
;
if
(
i_sleep
>
(
int64_t
)
i_rotate_size
)
{
msg_Err
(
NULL
,
"invalid aux file %"
PRIu64
" (stc %"
PRIu64
")"
,
i_dir_file
,
i_stc
);
exit
(
1
);
}
if
(
i_sleep
>
i_tolerance
)
{
...
...
@@ -158,7 +165,12 @@ int main( int i_argc, char **pp_argv )
close
(
OpenDirFile
(
psz_dir_name
,
i_dir_file
,
true
,
i_asked_payload_size
,
&
p_input_aux
)
);
fseeko
(
p_input_aux
,
8
*
i_nb_skipped_chunks
,
SEEK_SET
);
int
ret
=
fseeko
(
p_input_aux
,
8
*
i_nb_skipped_chunks
,
SEEK_SET
);
if
(
ret
==
-
1
)
{
msg_Err
(
NULL
,
"fseeko failed"
);
exit
(
1
);
}
for
(
;
;
)
{
...
...
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