Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
f2250513
Commit
f2250513
authored
Feb 07, 2014
by
geneticdrift
Committed by
Max Kellermann
Feb 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed possible format_context not closed in ffmpeg_decode
parent
b2e3fdef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
FfmpegDecoderPlugin.cxx
src/decoder/plugins/FfmpegDecoderPlugin.cxx
+4
-1
No files found.
src/decoder/plugins/FfmpegDecoderPlugin.cxx
View file @
f2250513
...
...
@@ -424,8 +424,11 @@ ffmpeg_decode(Decoder &decoder, InputStream &input)
const
SampleFormat
sample_format
=
ffmpeg_sample_format
(
codec_context
->
sample_fmt
);
if
(
sample_format
==
SampleFormat
::
UNDEFINED
)
if
(
sample_format
==
SampleFormat
::
UNDEFINED
)
{
// (error message already done by ffmpeg_sample_format())
avformat_close_input
(
&
format_context
);
return
;
}
Error
error
;
AudioFormat
audio_format
;
...
...
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