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
52d209b8
Commit
52d209b8
authored
Mar 09, 2012
by
Sébastien Escudier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live555 : fix quicktime audio codec settings.
parent
fc247b6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/demux/live555.cpp
modules/demux/live555.cpp
+4
-1
No files found.
modules/demux/live555.cpp
View file @
52d209b8
...
...
@@ -1776,6 +1776,8 @@ static void StreamRead( void *p_private, unsigned int i_size,
QuickTimeGenericRTPSource
::
QTState
&
qtState
=
qtRTPSource
->
qtState
;
uint8_t
*
sdAtom
=
(
uint8_t
*
)
&
qtState
.
sdAtom
[
4
];
/* Get codec informations from the quicktime atoms :
* http://developer.apple.com/quicktime/icefloe/dispatch026.html */
if
(
tk
->
fmt
.
i_cat
==
VIDEO_ES
)
{
if
(
qtState
.
sdAtomSize
<
16
+
32
)
{
...
...
@@ -1816,7 +1818,7 @@ static void StreamRead( void *p_private, unsigned int i_size,
}
}
else
{
if
(
qtState
.
sdAtomSize
<
4
)
if
(
qtState
.
sdAtomSize
<
2
4
)
{
/* invalid */
p_sys
->
event_data
=
0xff
;
...
...
@@ -1824,6 +1826,7 @@ static void StreamRead( void *p_private, unsigned int i_size,
return
;
}
tk
->
fmt
.
i_codec
=
VLC_FOURCC
(
sdAtom
[
0
],
sdAtom
[
1
],
sdAtom
[
2
],
sdAtom
[
3
]);
tk
->
fmt
.
audio
.
i_bitspersample
=
(
sdAtom
[
22
]
<<
8
)
|
sdAtom
[
23
];
}
tk
->
p_es
=
es_out_Add
(
p_demux
->
out
,
&
tk
->
fmt
);
}
...
...
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