Skip to content

Commit 88dc3d0

Browse files
author
Clement Champetier
committed
Option: fix get type of AVOption
An AVOption corresponds to a choice if it has a unit and a type of AV_OPT_TYPE_INT or AV_OPT_TYPE_INT64.
1 parent 85f5c46 commit 88dc3d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/Option.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ OptionType Option::getTypeFromAVOption( const char* unit, AVOptionType avType )
1616
{
1717
if( unit && avType == AV_OPT_TYPE_FLAGS )
1818
return TypeGroup;
19-
else if( unit && avType == AV_OPT_TYPE_INT )
19+
else if( unit && ( avType == AV_OPT_TYPE_INT || avType == AV_OPT_TYPE_INT64 ) )
2020
return TypeChoice;
2121
else if( unit && avType == AV_OPT_TYPE_CONST )
2222
return TypeChild;

0 commit comments

Comments
 (0)