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
32b36df2
Commit
32b36df2
authored
Aug 08, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a segmentation fault introduced by the previous commit
parent
94e2f25b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
modules/demux/ts.c
modules/demux/ts.c
+6
-4
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+10
-6
No files found.
modules/demux/ts.c
View file @
32b36df2
...
...
@@ -691,17 +691,19 @@ static int Open( vlc_object_t *p_this )
if
(
p_sys
->
csa
)
{
vlc_value_t
pkt_val
;
csa_SetCW
(
p_sys
->
csa
,
ck
,
ck
);
var_Create
(
p_demux
,
"ts-csa-pkt"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_demux
,
"ts-csa-pkt"
,
&
val
);
if
(
val
.
i_int
<
4
||
val
.
i_int
>
188
)
var_Get
(
p_demux
,
"ts-csa-pkt"
,
&
pkt_
val
);
if
(
pkt_val
.
i_int
<
4
||
pkt_
val
.
i_int
>
188
)
{
msg_Err
(
p_demux
,
"wrong packet size %d specified."
,
val
.
i_int
);
msg_Err
(
p_demux
,
"wrong packet size %d specified."
,
pkt_
val
.
i_int
);
msg_Warn
(
p_demux
,
"using default packet size of 188 bytes"
);
p_sys
->
i_csa_pkt_size
=
188
;
}
else
p_sys
->
i_csa_pkt_size
=
val
.
i_int
;
else
p_sys
->
i_csa_pkt_size
=
pkt_
val
.
i_int
;
msg_Dbg
(
p_demux
,
"decrypting %d bytes of packet"
,
p_sys
->
i_csa_pkt_size
);
}
}
...
...
modules/mux/mpeg/ts.c
View file @
32b36df2
...
...
@@ -390,13 +390,15 @@ static void PEStoTS ( sout_instance_t *, sout_buffer_chain_t *, block_t *, ts_s
static
int
Open
(
vlc_object_t
*
p_this
)
{
sout_mux_t
*
p_mux
=
(
sout_mux_t
*
)
p_this
;
sout_mux_sys_t
*
p_sys
;
sout_mux_sys_t
*
p_sys
=
NULL
;
vlc_value_t
val
;
msg_Dbg
(
p_mux
,
"Open"
);
sout_CfgParse
(
p_mux
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_mux
->
p_cfg
);
p_sys
=
malloc
(
sizeof
(
sout_mux_sys_t
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
p_mux
->
pf_control
=
Control
;
p_mux
->
pf_addstream
=
AddStream
;
...
...
@@ -560,16 +562,18 @@ static int Open( vlc_object_t *p_this )
p_sys
->
csa
=
csa_New
();
if
(
p_sys
->
csa
)
{
vlc_value_t
pkt_val
;
csa_SetCW
(
p_sys
->
csa
,
ck
,
ck
);
var_Get
(
p_mux
,
SOUT_CFG_PREFIX
"csa-pkt"
,
&
val
);
if
(
val
.
i_int
<
12
||
val
.
i_int
>
188
)
var_Get
(
p_mux
,
SOUT_CFG_PREFIX
"csa-pkt"
,
&
pkt_
val
);
if
(
pkt_val
.
i_int
<
12
||
pkt_
val
.
i_int
>
188
)
{
msg_Err
(
p_mux
,
"wrong packet size %d specified."
,
val
.
i_int
);
msg_Err
(
p_mux
,
"wrong packet size %d specified."
,
pkt_
val
.
i_int
);
msg_Warn
(
p_mux
,
"using default packet size of 188 bytes"
);
p_sys
->
i_csa_pkt_size
=
188
;
}
else
p_sys
->
i_csa_pkt_size
=
val
.
i_int
;
else
p_sys
->
i_csa_pkt_size
=
pkt_
val
.
i_int
;
msg_Dbg
(
p_mux
,
"encrypting %d bytes of packet"
,
p_sys
->
i_csa_pkt_size
);
}
}
...
...
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