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
2da3cff1
Commit
2da3cff1
authored
4 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter/LoadChain: use the AutoConvertFilter
This adds support for input samples other than 16 bit to the FFmpeg filter plugin.
parent
0c965d05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
NEWS
NEWS
+1
-0
LoadChain.cxx
src/filter/LoadChain.cxx
+5
-1
No files found.
NEWS
View file @
2da3cff1
...
...
@@ -4,6 +4,7 @@ ver 0.22.3 (not yet released)
* filter
- fix garbage after "Audio format not supported by filter" message
- ffmpeg: support planar output
- ffmpeg: support sample formats other than 16 bit
ver 0.22.2 (2020/10/28)
* database
...
...
This diff is collapsed.
Click to expand it.
src/filter/LoadChain.cxx
View file @
2da3cff1
...
...
@@ -20,6 +20,7 @@
#include "LoadChain.hxx"
#include "Factory.hxx"
#include "Prepared.hxx"
#include "plugins/AutoConvertFilterPlugin.hxx"
#include "plugins/ChainFilterPlugin.hxx"
#include "util/IterableSplitString.hxx"
...
...
@@ -29,11 +30,14 @@ static void
filter_chain_append_new
(
PreparedFilter
&
chain
,
FilterFactory
&
factory
,
std
::
string_view
template_name
)
{
/* using the AutoConvert filter just in case the specified
filter plugin does not support the exact input format */
filter_chain_append
(
chain
,
template_name
,
/* unfortunately, MakeFilter() wants a
null-terminated string, so we need to
copy it here */
factory
.
MakeFilter
(
std
::
string
(
template_name
).
c_str
(
)));
autoconvert_filter_new
(
factory
.
MakeFilter
(
std
::
string
(
template_name
).
c_str
()
)));
}
void
...
...
This diff is collapsed.
Click to expand it.
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