Fix upsampling buffer management to work with --auto-alt-ref=2

Change-Id: If1700f2fd7215a7ac487695ca3a911a9ac0469ac
3 files changed