Commit 5c92f2e6 authored by Christophe Massiot's avatar Christophe Massiot

remove incomplete TS packets

parent d7072ef7
......@@ -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 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment