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
a40eb079
Commit
a40eb079
authored
Jan 15, 2015
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtp: jpeg: fix memory leaks
(cherry picked from commit cbcbd32c1e62235877288bc0e0b54aad400a305f)
parent
ce3de59f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/stream_out/rtpfmt.c
modules/stream_out/rtpfmt.c
+4
-1
No files found.
modules/stream_out/rtpfmt.c
View file @
a40eb079
...
...
@@ -1569,11 +1569,14 @@ static int rtp_packetize_jpeg( sout_stream_id_sys_t *id, block_t *in )
int
i_payload
=
__MIN
(
i_data
,
(
int
)(
rtp_mtu
(
id
)
-
hdr_size
)
);
if
(
i_payload
<=
0
)
return
VLC_EGENERIC
;
goto
error
;
block_t
*
out
=
block_Alloc
(
12
+
hdr_size
+
i_payload
);
if
(
out
==
NULL
)
{
block_Release
(
in
);
return
VLC_ENOMEM
;
}
uint8_t
*
p
=
out
->
p_buffer
+
12
;
/* set main header */
...
...
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