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
a5b5ce26
Commit
a5b5ce26
authored
Jun 11, 2017
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/pcmdec: fix memory leak
Fixes CID 1396267
parent
4b2a2969
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
pcmdec.c
libavformat/pcmdec.c
+2
-0
No files found.
libavformat/pcmdec.c
View file @
a5b5ce26
...
...
@@ -68,6 +68,7 @@ static int pcm_read_header(AVFormatContext *s)
av_log
(
s
,
AV_LOG_ERROR
,
"Invalid sample_rate found in mime_type
\"
%s
\"\n
"
,
mime_type
);
av_freep
(
&
mime_type
);
return
AVERROR_INVALIDDATA
;
}
st
->
codecpar
->
sample_rate
=
rate
;
...
...
@@ -75,6 +76,7 @@ static int pcm_read_header(AVFormatContext *s)
st
->
codecpar
->
channels
=
channels
;
}
}
av_freep
(
&
mime_type
);
st
->
codecpar
->
bits_per_coded_sample
=
av_get_bits_per_sample
(
st
->
codecpar
->
codec_id
);
...
...
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