Skip to content

Commit 3a558d6

Browse files
author
Clement Champetier
committed
Description: update getInputExtensions
* Also parse name, because name's format defines (in general) extensions.
1 parent 163210e commit 3a558d6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/AvTranscoder/Description.hpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,16 @@ std::vector<std::string> getInputExtensions()
3636
{
3737
if( iFormat->extensions != NULL )
3838
{
39+
// parse extensions
3940
char* ext = const_cast<char*>( iFormat->extensions );
40-
41+
while( ext != NULL )
42+
{
43+
extensions.push_back( std::string( ext ) );
44+
ext = strtok( NULL, "," );
45+
}
46+
47+
//parse name (name's format defines (in general) extensions )
48+
ext = const_cast<char*>( iFormat->name );
4149
while( ext != NULL )
4250
{
4351
extensions.push_back( std::string( ext ) );

0 commit comments

Comments
 (0)