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
fd112a94
Commit
fd112a94
authored
Jan 22, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Real demux: correctly set the subpacket size when SIPR is used
parent
7108cd2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
modules/demux/real.c
modules/demux/real.c
+9
-0
No files found.
modules/demux/real.c
View file @
fd112a94
...
...
@@ -145,6 +145,8 @@ struct demux_sys_t
real_index_t
*
p_index
;
};
static
const
unsigned
char
i_subpacket_size_sipr
[
4
]
=
{
29
,
19
,
37
,
20
};
static
int
Demux
(
demux_t
*
);
static
int
Control
(
demux_t
*
,
int
i_query
,
va_list
args
);
...
...
@@ -722,6 +724,7 @@ static void DemuxAudioMethod1( demux_t *p_demux, real_track_t *tk, mtime_t i_pts
tk
->
i_out_subpacket
=
0
;
}
}
static
void
DemuxAudioMethod2
(
demux_t
*
p_demux
,
real_track_t
*
tk
,
mtime_t
i_pts
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
...
...
@@ -1488,6 +1491,12 @@ static int CodecAudioParse( demux_t *p_demux, int i_tk_id, const uint8_t *p_data
case
VLC_FOURCC
(
's'
,
'i'
,
'p'
,
'r'
):
fmt
.
i_codec
=
VLC_CODEC_SIPR
;
fmt
.
audio
.
i_flavor
=
i_flavor
;
if
(
i_flavor
>
3
)
return
VLC_EGENERIC
;
i_subpacket_size
=
i_subpacket_size_sipr
[
i_flavor
];
msg_Dbg
(
p_demux
,
" - sipr flavor=%i"
,
i_flavor
);
case
VLC_FOURCC
(
'c'
,
'o'
,
'o'
,
'k'
):
case
VLC_FOURCC
(
'a'
,
't'
,
'r'
,
'c'
):
if
(
i_subpacket_size
<=
0
||
i_frame_size
/
i_subpacket_size
<=
0
)
...
...
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