Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
e6c66f1e
Commit
e6c66f1e
authored
Oct 24, 2014
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bethsoftvid: check return value and clean memory
CC: libav-stable@libav.org Bug-Id: CID 733777
parent
b46b233b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
bethsoftvid.c
libavformat/bethsoftvid.c
+4
-0
No files found.
libavformat/bethsoftvid.c
View file @
e6c66f1e
...
...
@@ -189,6 +189,10 @@ static int read_frame(BVID_DemuxContext *vid, AVIOContext *pb, AVPacket *pkt,
if
(
vid
->
palette
)
{
uint8_t
*
pdata
=
av_packet_new_side_data
(
pkt
,
AV_PKT_DATA_PALETTE
,
BVID_PALETTE_SIZE
);
if
(
!
pdata
)
{
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
}
memcpy
(
pdata
,
vid
->
palette
,
BVID_PALETTE_SIZE
);
av_freep
(
&
vid
->
palette
);
}
...
...
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