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
0c2787f8
Commit
0c2787f8
authored
Sep 25, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile fixes and another memory leak fix
parent
966a1503
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
modules/access/rtsp/real_rmff.c
modules/access/rtsp/real_rmff.c
+3
-3
modules/access/rtsp/real_sdpplin.c
modules/access/rtsp/real_sdpplin.c
+13
-7
No files found.
modules/access/rtsp/real_rmff.c
View file @
0c2787f8
...
...
@@ -250,7 +250,7 @@ void rmff_dump_pheader(rmff_pheader_t *h, char *data) {
rmff_fileheader_t
*
rmff_new_fileheader
(
uint32_t
num_headers
)
{
rmff_fileheader_t
*
fileheader
=
malloc
(
sizeof
(
rmff_fileheader_t
));
if
(
!
fileh
andl
er
)
return
NULL
;
if
(
!
fileh
ead
er
)
return
NULL
;
memset
(
fileheader
,
0
,
sizeof
(
rmff_fileheader_t
));
fileheader
->
object_id
=
RMF_TAG
;
...
...
@@ -475,8 +475,8 @@ void rmff_print_header(rmff_header_t *h)
void
rmff_fix_header
(
rmff_header_t
*
h
)
{
int
num_headers
=
0
;
int
header_size
=
0
;
unsigned
int
num_headers
=
0
;
unsigned
int
header_size
=
0
;
rmff_mdpr_t
**
streams
;
int
num_streams
=
0
;
...
...
modules/access/rtsp/real_sdpplin.c
View file @
0c2787f8
...
...
@@ -32,7 +32,8 @@
static
char
*
b64_decode
(
const
char
*
in
,
char
*
out
,
int
*
size
)
{
char
dtable
[
256
];
/* Encode / decode table */
int
i
,
j
,
k
;
int
i
,
k
;
unsigned
int
j
;
for
(
i
=
0
;
i
<
255
;
i
++
)
{
dtable
[
i
]
=
0x80
;
...
...
@@ -109,7 +110,6 @@ static int filter(const char *in, const char *filter, char **out)
(
*
out
)[
len
-
flen
]
=
0
;
return
len
-
flen
;
}
return
0
;
}
...
...
@@ -120,9 +120,12 @@ static sdpplin_stream_t *sdpplin_parse_stream(char **data)
char
*
decoded
=
malloc
(
32000
);
int
handled
;
if
(
!
desc
)
goto
error
;
if
(
!
desc
)
return
NULL
;
memset
(
desc
,
0
,
sizeof
(
sdpplin_stream_t
));
if
(
!
buf
)
goto
error
;
if
(
!
decoded
)
goto
error
;
if
(
filter
(
*
data
,
"m="
,
&
buf
))
{
desc
->
id
=
strdup
(
buf
);
...
...
@@ -130,10 +133,7 @@ static sdpplin_stream_t *sdpplin_parse_stream(char **data)
else
{
lprintf
(
"sdpplin: no m= found.
\n
"
);
if
(
decoded
)
free
(
decoded
);
if
(
desc
)
free
(
desc
);
if
(
buf
)
free
(
buf
);
return
NULL
;
goto
error
;
}
*
data
=
nl
(
*
data
);
...
...
@@ -225,6 +225,12 @@ static sdpplin_stream_t *sdpplin_parse_stream(char **data)
if
(
buf
)
free
(
buf
);
if
(
decoded
)
free
(
decoded
);
return
desc
;
error:
if
(
decoded
)
free
(
decoded
);
if
(
desc
)
free
(
desc
);
if
(
buf
)
free
(
buf
);
return
NULL
;
}
sdpplin_t
*
sdpplin_parse
(
char
*
data
)
...
...
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