Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
22f5ab36
Commit
22f5ab36
authored
Feb 27, 2014
by
Ross Finlayson
Committed by
Jean-Baptiste Kempf
Mar 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live555: Support playing H.265 video RTP streams
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
cf8077a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
2 deletions
+38
-2
modules/access/live555.cpp
modules/access/live555.cpp
+38
-2
No files found.
modules/access/live555.cpp
View file @
22f5ab36
...
...
@@ -1033,6 +1033,40 @@ static int SessionsSetup( demux_t *p_demux )
delete
[]
p_extra
;
}
}
#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1393372800 // 2014.02.26
else
if
(
!
strcmp
(
sub
->
codecName
(),
"H265"
)
)
{
unsigned
int
i_extra1
=
0
,
i_extra2
=
0
,
i_extra3
=
0
,
i_extraTot
;
uint8_t
*
p_extra1
=
NULL
,
*
p_extra2
=
NULL
,
*
p_extra3
=
NULL
;
tk
->
fmt
.
i_codec
=
VLC_CODEC_HEVC
;
tk
->
fmt
.
b_packetized
=
false
;
p_extra1
=
parseH264ConfigStr
(
sub
->
fmtp_spropvps
(),
i_extra1
);
p_extra2
=
parseH264ConfigStr
(
sub
->
fmtp_spropsps
(),
i_extra2
);
p_extra3
=
parseH264ConfigStr
(
sub
->
fmtp_sproppps
(),
i_extra3
);
i_extraTot
=
i_extra1
+
i_extra2
+
i_extra3
;
if
(
i_extraTot
>
0
)
{
tk
->
fmt
.
i_extra
=
i_extraTot
;
tk
->
fmt
.
p_extra
=
xmalloc
(
i_extraTot
);
if
(
p_extra1
)
{
memcpy
(
tk
->
fmt
.
p_extra
,
p_extra1
,
i_extra1
);
}
if
(
p_extra2
)
{
memcpy
(
((
char
*
)
tk
->
fmt
.
p_extra
)
+
i_extra1
,
p_extra2
,
i_extra2
);
}
if
(
p_extra3
)
{
memcpy
(
((
char
*
)
tk
->
fmt
.
p_extra
)
+
i_extra1
+
i_extra2
,
p_extra3
,
i_extra3
);
}
delete
[]
p_extra1
;
delete
[]
p_extra2
;
delete
[]
p_extra3
;
}
}
#endif
else
if
(
!
strcmp
(
sub
->
codecName
(),
"JPEG"
)
)
{
tk
->
fmt
.
i_codec
=
VLC_CODEC_MJPG
;
...
...
@@ -1947,10 +1981,12 @@ static void StreamRead( void *p_private, unsigned int i_size,
if
(
tk
->
sub
->
rtpSource
()
->
curPacketMarkerBit
()
)
p_block
->
i_flags
|=
BLOCK_FLAG_END_OF_FRAME
;
}
else
if
(
tk
->
fmt
.
i_codec
==
VLC_CODEC_H264
)
else
if
(
tk
->
fmt
.
i_codec
==
VLC_CODEC_H264
||
tk
->
fmt
.
i_codec
==
VLC_CODEC_HEVC
)
{
if
(
(
tk
->
p_buffer
[
0
]
&
0x1f
)
>=
24
)
if
(
tk
->
fmt
.
i_codec
==
VLC_CODEC_H264
&&
(
tk
->
p_buffer
[
0
]
&
0x1f
)
>=
24
)
msg_Warn
(
p_demux
,
"unsupported NAL type for H264"
);
else
if
(
tk
->
fmt
.
i_codec
==
VLC_CODEC_HEVC
&&
((
tk
->
p_buffer
[
0
]
&
0x7e
)
>>
1
)
>=
48
)
msg_Warn
(
p_demux
,
"unsupported NAL type for H265"
);
/* Normal NAL type */
p_block
=
block_Alloc
(
i_size
+
4
);
...
...
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