Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
0b5898c8
Commit
0b5898c8
authored
Apr 15, 2004
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle h261 video streams over rtp
parent
4903ec72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
modules/demux/livedotcom.cpp
modules/demux/livedotcom.cpp
+20
-2
No files found.
modules/demux/livedotcom.cpp
View file @
0b5898c8
...
...
@@ -936,14 +936,32 @@ static void StreamRead( void *p_private, unsigned int i_size, struct timeval pts
i_size,
pts.tv_sec * 1000000LL + pts.tv_usec );
#endif
if
(
tk
->
fmt
.
i_codec
==
VLC_FOURCC
(
'h'
,
'2'
,
'6'
,
'1'
)
)
{
i_size
+=
4
;
}
if
(
i_size
>
65536
)
{
msg_Warn
(
p_demux
,
"buffer overflow"
);
}
/* FIXME could i_size be > buffer size ? */
p_block
=
block_New
(
p_demux
,
i_size
);
memcpy
(
p_block
->
p_buffer
,
tk
->
buffer
,
i_size
);
if
(
tk
->
fmt
.
i_codec
==
VLC_FOURCC
(
'h'
,
'2'
,
'6'
,
'1'
)
)
{
H261VideoRTPSource
*
h261Source
=
(
H261VideoRTPSource
*
)
tk
->
rtpSource
;
uint32_t
header
=
h261Source
->
lastSpecialHeader
();
memcpy
(
p_block
->
p_buffer
,
&
header
,
4
);
memcpy
(
p_block
->
p_buffer
+
4
,
tk
->
buffer
,
i_size
);
}
else
{
memcpy
(
p_block
->
p_buffer
,
tk
->
buffer
,
i_size
);
}
if
(
tk
->
rtpSource
->
curPacketMarkerBit
()
)
{
p_block
->
i_flags
|=
BLOCK_FLAG_HEADER
;
}
//p_block->i_rate = p_input->stream.control.i_rate;
if
(
i_pts
!=
tk
->
i_pts
&&
!
tk
->
b_muxed
)
...
...
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