Merge "APV Encoder: properly initialize frame holders and fix initializations" into main