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
110d2af2
Commit
110d2af2
authored
Dec 05, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: fix memleaks due to not freeing the AVFrame for audio
parent
b41995d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
avconv.c
avconv.c
+4
-0
No files found.
avconv.c
View file @
110d2af2
...
...
@@ -1633,6 +1633,7 @@ static int transcode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
if
(
!*
got_output
)
{
/* no audio frame */
av_freep
(
&
decoded_frame
);
return
ret
;
}
...
...
@@ -1700,6 +1701,7 @@ static int transcode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
av_log
(
NULL
,
AV_LOG_FATAL
,
"Audio volume adjustment on sample format %s is not supported.
\n
"
,
av_get_sample_fmt_name
(
ist
->
st
->
codec
->
sample_fmt
));
av_freep
(
&
decoded_frame
);
exit_program
(
1
);
}
}
...
...
@@ -1713,6 +1715,8 @@ static int transcode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
continue
;
do_audio_out
(
output_files
[
ost
->
file_index
].
ctx
,
ost
,
ist
,
decoded_frame
);
}
av_freep
(
&
decoded_frame
);
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