For Qt GUI, add libav version preprocessor guard to make sure that AV_OPT_TYPE_UINT64 definition exists before using it in source. Fixes issue #578

This commit is contained in:
harry 2023-01-13 01:18:58 -05:00
parent a3240e9c2e
commit 90d03a6374
1 changed files with 8 additions and 0 deletions

View File

@ -3417,7 +3417,9 @@ void LibavEncOptItem::setValueText(void)
break;
case AV_OPT_TYPE_INT:
case AV_OPT_TYPE_INT64:
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(55, 58, 100)
case AV_OPT_TYPE_UINT64:
#endif
{
int64_t i;
@ -3789,7 +3791,9 @@ LibavEncOptInputWin::LibavEncOptInputWin( LibavEncOptItem *itemIn, QWidget *pare
{
case AV_OPT_TYPE_INT:
case AV_OPT_TYPE_INT64:
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(55, 58, 100)
case AV_OPT_TYPE_UINT64:
#endif
{
int64_t val;
@ -4054,7 +4058,9 @@ void LibavEncOptInputWin::applyChanges(void)
{
case AV_OPT_TYPE_INT:
case AV_OPT_TYPE_INT64:
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(55, 58, 100)
case AV_OPT_TYPE_UINT64:
#endif
{
if ( intEntry )
{
@ -4144,7 +4150,9 @@ void LibavEncOptInputWin::resetDefaultsCB(void)
{
case AV_OPT_TYPE_INT:
case AV_OPT_TYPE_INT64:
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(55, 58, 100)
case AV_OPT_TYPE_UINT64:
#endif
{
if ( intEntry )
{