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
739d192a
Commit
739d192a
authored
Mar 08, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/services_discovery/sap.c, modules/codec/x264.c: fixed small mem leaks.
* modules/stream_out/transcode.c: fixed segfault.
parent
9aa2f5ea
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
modules/codec/x264.c
modules/codec/x264.c
+1
-0
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+6
-4
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+2
-2
No files found.
modules/codec/x264.c
View file @
739d192a
...
...
@@ -286,6 +286,7 @@ static int Open ( vlc_object_t *p_this )
p_sys
->
param
.
analyse
.
inter
=
X264_ANALYSE_I4x4
|
X264_ANALYSE_PSUB16x16
|
X264_ANALYSE_PSUB8x8
;
}
if
(
val
.
psz_string
)
free
(
val
.
psz_string
);
if
(
p_enc
->
fmt_in
.
video
.
i_aspect
>
0
)
{
...
...
modules/services_discovery/sap.c
View file @
739d192a
...
...
@@ -365,11 +365,9 @@ static int OpenDemux( vlc_object_t *p_this )
uint8_t
*
p_peek
;
int
i_max_sdp
=
1024
;
int
i_sdp
=
0
;
char
*
psz_sdp
=
(
char
*
)
malloc
(
i_max_sdp
)
;
char
*
psz_sdp
=
NULL
;
sdp_t
*
p_sdp
=
NULL
;
if
(
!
psz_sdp
)
return
VLC_EGENERIC
;
/* Probe for SDP */
if
(
p_demux
->
s
)
{
...
...
@@ -383,6 +381,9 @@ static int OpenDemux( vlc_object_t *p_this )
}
}
psz_sdp
=
(
char
*
)
malloc
(
i_max_sdp
);
if
(
!
psz_sdp
)
return
VLC_EGENERIC
;
/* Gather the complete sdp file */
for
(
;;
)
{
...
...
@@ -424,7 +425,8 @@ static int OpenDemux( vlc_object_t *p_this )
{
p_sdp
->
psz_uri
=
NULL
;
}
if
(
p_sdp
->
i_media_type
!=
33
&&
p_sdp
->
i_media_type
!=
32
&&
p_sdp
->
i_media_type
!=
14
)
if
(
p_sdp
->
i_media_type
!=
33
&&
p_sdp
->
i_media_type
!=
32
&&
p_sdp
->
i_media_type
!=
14
)
goto
error
;
if
(
p_sdp
->
psz_uri
==
NULL
)
goto
error
;
...
...
modules/stream_out/transcode.c
View file @
739d192a
...
...
@@ -1490,9 +1490,9 @@ static int transcode_video_process( sout_stream_t *p_stream,
{
if
(
transcode_video_encoder_open
(
p_stream
,
id
)
!=
VLC_SUCCESS
)
{
p_pic
->
pf_release
(
p_pic
);
transcode_video_close
(
p_stream
,
id
);
id
->
b_transcode
=
VLC_FALSE
;
p_pic
->
pf_release
(
p_pic
);
return
VLC_EGENERIC
;
}
...
...
@@ -1569,9 +1569,9 @@ static int transcode_video_process( sout_stream_t *p_stream,
vlc_object_detach
(
id
->
pp_filter
[
id
->
i_filter
]
);
vlc_object_destroy
(
id
->
pp_filter
[
id
->
i_filter
]
);
p_pic
->
pf_release
(
p_pic
);
transcode_video_close
(
p_stream
,
id
);
id
->
b_transcode
=
VLC_FALSE
;
p_pic
->
pf_release
(
p_pic
);
return
VLC_EGENERIC
;
}
}
...
...
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