Re-encode if ref frames too high