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
c8ed93ef
Commit
c8ed93ef
authored
Apr 14, 2016
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/yop: alloc codecpar extradata only once
Fixes memleak Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
9cd2ca99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
yop.c
libavformat/yop.c
+0
-6
No files found.
libavformat/yop.c
View file @
c8ed93ef
...
@@ -72,12 +72,6 @@ static int yop_read_header(AVFormatContext *s)
...
@@ -72,12 +72,6 @@ static int yop_read_header(AVFormatContext *s)
if
(
ff_alloc_extradata
(
video_stream
->
codecpar
,
8
))
if
(
ff_alloc_extradata
(
video_stream
->
codecpar
,
8
))
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
video_stream
->
codecpar
->
extradata
=
av_mallocz
(
8
+
AV_INPUT_BUFFER_PADDING_SIZE
);
if
(
!
video_stream
->
codecpar
->
extradata
)
return
AVERROR
(
ENOMEM
);
video_stream
->
codecpar
->
extradata_size
=
8
;
// Audio
// Audio
audio_par
=
audio_stream
->
codecpar
;
audio_par
=
audio_stream
->
codecpar
;
audio_par
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
audio_par
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
...
...
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