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
fab40834
Commit
fab40834
authored
Feb 16, 2006
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
real.c: fix some crashes
parent
2927b624
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/demux/real.c
modules/demux/real.c
+9
-4
No files found.
modules/demux/real.c
View file @
fab40834
...
...
@@ -155,16 +155,17 @@ static void Close( vlc_object_t *p_this )
for
(
i
=
0
;
i
<
p_sys
->
i_track
;
i
++
)
{
real_track_t
*
tk
=
p_sys
->
track
[
i
];
int
j
=
tk
->
i_subpackets
;
if
(
tk
->
p_frame
)
block_Release
(
tk
->
p_frame
);
es_format_Clean
(
&
tk
->
fmt
);
while
(
tk
->
i_subpackets
--
)
while
(
j
--
)
{
if
(
tk
->
p_subpackets
[
tk
->
i_subpackets
]
)
block_Release
(
tk
->
p_subpackets
[
tk
->
i_subpackets
]
);
if
(
!
tk
->
i_subpackets
)
free
(
tk
->
p_subpackets
);
if
(
tk
->
p_subpackets
[
j
]
)
block_Release
(
tk
->
p_subpackets
[
j
]
);
}
if
(
!
tk
->
i_subpackets
)
free
(
tk
->
p_subpackets
);
free
(
tk
);
}
...
...
@@ -904,6 +905,10 @@ static int ReadCodecSpecificData( demux_t *p_demux, int i_len, int i_num )
(
char
*
)
&
fmt
.
i_codec
,
fmt
.
video
.
i_width
,
fmt
.
video
.
i_height
);
tk
=
malloc
(
sizeof
(
real_track_t
)
);
tk
->
i_out_subpacket
=
0
;
tk
->
i_subpacket
=
0
;
tk
->
i_subpackets
=
0
;
tk
->
p_subpackets
=
NULL
;
tk
->
i_id
=
i_num
;
tk
->
fmt
=
fmt
;
tk
->
i_frame
=
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