Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
305d2ca1
Commit
305d2ca1
authored
Jan 06, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packetizer_copy: fix potential memleak
parent
f86d0e82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
modules/packetizer/copy.c
modules/packetizer/copy.c
+12
-5
No files found.
modules/packetizer/copy.c
View file @
305d2ca1
...
...
@@ -101,7 +101,7 @@ static int Open( vlc_object_t *p_this )
case
VLC_FOURCC
(
'X'
,
'v'
,
'i'
,
'D'
):
case
VLC_FOURCC
(
'x'
,
'v'
,
'i'
,
'd'
):
case
VLC_FOURCC
(
'D'
,
'X'
,
'5'
,
'0'
):
case
VLC_FOURCC
(
0x04
,
0
,
0
,
0
):
case
VLC_FOURCC
(
0x04
,
0
,
0
,
0
):
case
VLC_FOURCC
(
'3'
,
'I'
,
'V'
,
'2'
):
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
);
break
;
...
...
@@ -182,7 +182,7 @@ static int Open( vlc_object_t *p_this )
break
;
default:
msg_Err
(
p_dec
,
"unknown raw audio sample size"
);
return
VLC_EGENERIC
;
goto
error
;
}
break
;
...
...
@@ -203,7 +203,7 @@ static int Open( vlc_object_t *p_this )
break
;
default:
msg_Err
(
p_dec
,
"unknown raw audio sample size"
);
return
VLC_EGENERIC
;
goto
error
;
}
break
;
...
...
@@ -224,17 +224,24 @@ static int Open( vlc_object_t *p_this )
break
;
default:
msg_Err
(
p_dec
,
"unknown raw audio sample size"
);
return
VLC_EGENERIC
;
goto
error
;
}
break
;
}
p_dec
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
block_t
)
);
if
(
!
p_sys
)
{
es_format_Clean
(
&
p_dec
->
fmt_out
);
return
VLC_ENOMEM
;
p_sys
->
p_block
=
NULL
;
}
p_sys
->
p_block
=
NULL
;
return
VLC_SUCCESS
;
error:
es_format_Clean
(
&
p_dec
->
fmt_out
);
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