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
af043e92
Commit
af043e92
authored
Oct 08, 2006
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed another bunch of memory leaks.
parent
ee16b381
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
modules/codec/dts.c
modules/codec/dts.c
+1
-1
modules/codec/ffmpeg/demux.c
modules/codec/ffmpeg/demux.c
+2
-0
modules/demux/mjpeg.c
modules/demux/mjpeg.c
+1
-1
modules/demux/real.c
modules/demux/real.c
+9
-2
No files found.
modules/codec/dts.c
View file @
af043e92
...
...
@@ -99,7 +99,7 @@ vlc_module_begin();
add_submodule
();
set_description
(
_
(
"DTS audio packetizer"
)
);
set_capability
(
"packetizer"
,
10
);
set_callbacks
(
OpenPacketizer
,
NULL
);
set_callbacks
(
OpenPacketizer
,
CloseDecoder
);
vlc_module_end
();
/*****************************************************************************
...
...
modules/codec/ffmpeg/demux.c
View file @
af043e92
...
...
@@ -255,7 +255,9 @@ void E_(CloseDemux)( vlc_object_t *p_this )
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
unsigned
int
i
;
FREENULL
(
p_sys
->
tk
);
if
(
p_sys
->
ic
)
av_close_input_file
(
p_sys
->
ic
);
if
(
p_sys
->
io_buffer
)
free
(
p_sys
->
io_buffer
);
free
(
p_sys
);
...
...
modules/demux/mjpeg.c
View file @
af043e92
...
...
@@ -215,8 +215,8 @@ static vlc_bool_t CheckMimeHeader( demux_t *p_demux, int *p_header_size )
msg_Warn
(
p_demux
,
"separator %s does not match %s"
,
psz_line
,
p_sys
->
psz_separator
);
}
free
(
psz_line
);
}
free
(
psz_line
);
psz_line
=
GetLine
(
p_demux
,
&
i_pos
);
while
(
psz_line
&&
*
psz_line
)
{
...
...
modules/demux/real.c
View file @
af043e92
...
...
@@ -176,11 +176,16 @@ static void Close( vlc_object_t *p_this )
if
(
tk
->
p_subpackets
[
j
]
)
block_Release
(
tk
->
p_subpackets
[
j
]
);
}
if
(
!
tk
->
i_subpackets
)
free
(
tk
->
p_subpackets
);
if
(
tk
->
i_subpackets
)
free
(
tk
->
p_subpackets
);
free
(
tk
);
}
if
(
p_sys
->
psz_title
)
free
(
p_sys
->
psz_title
);
if
(
p_sys
->
psz_artist
)
free
(
p_sys
->
psz_artist
);
if
(
p_sys
->
psz_copyright
)
free
(
p_sys
->
psz_copyright
);
if
(
p_sys
->
psz_description
)
free
(
p_sys
->
psz_description
);
if
(
p_sys
->
i_track
>
0
)
free
(
p_sys
->
track
);
free
(
p_sys
);
}
...
...
@@ -523,6 +528,8 @@ static int Demux( demux_t *p_demux )
p_block
->
i_dts
=
p_block
->
i_pts
=
i_pts
;
tk
->
p_subpackets
[
i_index
]
=
p_block
;
tk
->
i_subpacket
++
;
msg_Err
(
p_demux
,
"PTS!DTS: %lld, %lld"
,
p_block
->
i_dts
,
p_block
->
i_pts
);
}
if
(
tk
->
fmt
.
i_codec
==
VLC_FOURCC
(
'2'
,
'8'
,
'_'
,
'8'
)
)
...
...
@@ -715,7 +722,7 @@ static int HeaderRead( demux_t *p_demux )
msg_Dbg
(
p_demux
,
"object %4.4s size=%d version=%d"
,
(
char
*
)
&
i_id
,
i_size
,
i_version
);
if
(
i_size
<
10
)
if
(
i_size
<
10
&&
i_id
!=
VLC_FOURCC
(
'D'
,
'A'
,
'T'
,
'A'
)
)
{
msg_Dbg
(
p_demux
,
"invalid size for object %4.4s"
,
(
char
*
)
&
i_id
);
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