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
de7eedf4
Commit
de7eedf4
authored
Mar 19, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix AMR from liveMedia decoding. Patch by Alex Antropoff <alant at transtelecom dot md>
parent
6ba683e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/demux/livedotcom.cpp
modules/demux/livedotcom.cpp
+10
-1
No files found.
modules/demux/livedotcom.cpp
View file @
de7eedf4
...
@@ -1272,7 +1272,16 @@ static void StreamRead( void *p_private, unsigned int i_size,
...
@@ -1272,7 +1272,16 @@ static void StreamRead( void *p_private, unsigned int i_size,
msg_Warn
(
p_demux
,
"buffer overflow"
);
msg_Warn
(
p_demux
,
"buffer overflow"
);
}
}
/* FIXME could i_size be > buffer size ? */
/* FIXME could i_size be > buffer size ? */
if
(
tk
->
fmt
.
i_codec
==
VLC_FOURCC
(
'H'
,
'2'
,
'6'
,
'1'
)
)
if
(
tk
->
fmt
.
i_codec
==
VLC_FOURCC
(
's'
,
'a'
,
'm'
,
'r'
)
||
tk
->
fmt
.
i_codec
==
VLC_FOURCC
(
's'
,
'a'
,
'w'
,
'b'
)
)
{
AMRAudioSource
*
amrSource
=
(
AMRAudioSource
*
)
tk
->
readSource
;
p_block
=
block_New
(
p_demux
,
i_size
+
1
);
p_block
->
p_buffer
[
0
]
=
amrSource
->
lastFrameHeader
();
memcpy
(
p_block
->
p_buffer
+
1
,
tk
->
p_buffer
,
i_size
);
}
else
if
(
tk
->
fmt
.
i_codec
==
VLC_FOURCC
(
'H'
,
'2'
,
'6'
,
'1'
)
)
{
{
#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1081468800
#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1081468800
H261VideoRTPSource
*
h261Source
=
(
H261VideoRTPSource
*
)
tk
->
rtpSource
;
H261VideoRTPSource
*
h261Source
=
(
H261VideoRTPSource
*
)
tk
->
rtpSource
;
...
...
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