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
84bf64d3
Commit
84bf64d3
authored
Oct 29, 2014
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bethsoftvid: simplify return handling
Fixes a double free in case of av_packet_new_side_data() failure.
parent
e9ba3098
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
bethsoftvid.c
libavformat/bethsoftvid.c
+0
-2
No files found.
libavformat/bethsoftvid.c
View file @
84bf64d3
...
...
@@ -177,7 +177,6 @@ static int read_frame(BVID_DemuxContext *vid, AVIOContext *pb, AVPacket *pkt,
if
((
ret
=
av_new_packet
(
pkt
,
vidbuf_nbytes
))
<
0
)
goto
fail
;
memcpy
(
pkt
->
data
,
vidbuf_start
,
vidbuf_nbytes
);
av_free
(
vidbuf_start
);
pkt
->
pos
=
position
;
pkt
->
stream_index
=
vid
->
video_index
;
...
...
@@ -198,7 +197,6 @@ static int read_frame(BVID_DemuxContext *vid, AVIOContext *pb, AVPacket *pkt,
}
vid
->
nframes
--
;
// used to check if all the frames were read
return
0
;
fail:
av_free
(
vidbuf_start
);
return
ret
;
...
...
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