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
34d278f9
Commit
34d278f9
authored
Jun 08, 2015
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpjpegdec: fix memory leak in probe function
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
a4557b7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mpjpegdec.c
libavformat/mpjpegdec.c
+2
-1
No files found.
libavformat/mpjpegdec.c
View file @
34d278f9
...
...
@@ -88,7 +88,7 @@ static int mpjpeg_read_probe(AVProbeData *p)
return
AVERROR
(
ENOMEM
);
if
(
p
->
buf_size
<
2
||
p
->
buf
[
0
]
!=
'-'
||
p
->
buf
[
1
]
!=
'-'
)
return
0
;
goto
end
;
while
(
!
pb
->
eof_reached
)
{
ret
=
get_line
(
pb
,
line
,
sizeof
(
line
));
...
...
@@ -102,6 +102,7 @@ static int mpjpeg_read_probe(AVProbeData *p)
}
}
end:
av_free
(
pb
);
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