Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
e3a6345c
Commit
e3a6345c
authored
Aug 23, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ps.c: handle PES with 0 size. (look for next start code, slow but
better that nothing).
parent
b9c13322
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
modules/demux/ps.c
modules/demux/ps.c
+25
-1
No files found.
modules/demux/ps.c
View file @
e3a6345c
...
...
@@ -329,9 +329,33 @@ static block_t *ps_pkt_read( stream_t *s, uint32_t i_code )
int
i_peek
=
stream_Peek
(
s
,
&
p_peek
,
14
);
int
i_size
=
ps_pkt_size
(
p_peek
,
i_peek
);
if
(
i_size
>
0
)
if
(
i_size
<=
6
&&
p_peek
[
3
]
>
0xba
)
{
/* Special case, search the next start code */
i_size
=
6
;
for
(
;;
)
{
i_peek
=
stream_Peek
(
s
,
&
p_peek
,
i_size
+
1024
);
if
(
i_peek
<=
i_size
+
4
)
{
return
NULL
;
}
while
(
i_size
<=
i_peek
-
4
)
{
if
(
p_peek
[
i_size
]
==
0x00
&&
p_peek
[
i_size
+
1
]
==
0x00
&&
p_peek
[
i_size
+
2
]
==
0x01
&&
p_peek
[
i_size
+
3
]
>=
0xb9
)
{
return
stream_Block
(
s
,
i_size
);
}
i_size
++
;
}
}
}
else
{
/* Normal case */
return
stream_Block
(
s
,
i_size
);
}
return
NULL
;
}
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