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
ae895a40
Commit
ae895a40
authored
Dec 19, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10l (double free)
Originally committed as revision 3764 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ed2d7a34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
img2.c
libavformat/img2.c
+1
-6
No files found.
libavformat/img2.c
View file @
ae895a40
...
...
@@ -155,7 +155,6 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap)
st
=
av_new_stream
(
s1
,
0
);
if
(
!
st
)
{
av_free
(
s
);
return
-
ENOMEM
;
}
...
...
@@ -181,7 +180,7 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap)
if
(
!
s
->
is_pipe
)
{
if
(
find_image_range
(
&
first_index
,
&
last_index
,
s
->
path
)
<
0
)
goto
fail
;
return
AVERROR_IO
;
s
->
img_first
=
first_index
;
s
->
img_last
=
last_index
;
s
->
img_number
=
first_index
;
...
...
@@ -204,10 +203,6 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap)
}
return
0
;
fail
:
av_free
(
s
);
return
AVERROR_IO
;
}
static
int
img_read_packet
(
AVFormatContext
*
s1
,
AVPacket
*
pkt
)
...
...
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