Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
multicat
Commits
5c92f2e6
Commit
5c92f2e6
authored
Jul 09, 2014
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove incomplete TS packets
parent
d7072ef7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
multicat.c
multicat.c
+4
-0
No files found.
multicat.c
View file @
5c92f2e6
...
...
@@ -997,6 +997,10 @@ int main( int i_argc, char **pp_argv )
i_payload_size
=
i_read_size
;
}
/* Skip last incomplete TS packet */
i_read_size
-=
i_payload_size
%
TS_SIZE
;
i_payload_size
-=
i_payload_size
%
TS_SIZE
;
/* Pad to get the asked payload size */
while
(
i_payload_size
+
TS_SIZE
<=
i_asked_payload_size
)
{
...
...
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