Bug fix for missing va_end on stdarg list. According to online documentation, vfprintf does not call va_end. This was caught by cppcheck.

This commit is contained in:
harry 2022-08-04 05:25:58 -04:00 committed by zeromus
parent 44c8e15503
commit 0c36a3575e
1 changed files with 2 additions and 0 deletions

View File

@ -841,6 +841,8 @@ static void log_callback( void *avcl, int level, const char *fmt, va_list vl)
va_copy( vl2, vl ); va_copy( vl2, vl );
vfprintf( avLogFp, fmt, vl2 ); vfprintf( avLogFp, fmt, vl2 );
va_end(vl2);
} }
av_log_default_callback( avcl, level, fmt, vl ); av_log_default_callback( avcl, level, fmt, vl );